1 //------------------------------------------------------------------------------
2 // <auto-generated>
3 // This code was generated
by a tool.
4 // Runtime Version:
4.0.30319.1
5 //
6 // Changes to
this file may cause incorrect behavior and will be lost if
7 // the code
is regenerated.
8 // </auto-generated>
9 //------------------------------------------------------------------------------

10
11 #pragma warning disable
1591
12
13 namespace
QuanLyNhanSu {
14     
15     
16     ///
<summary>
17     ///
Represents a strongly typed in-memory cache of data.
18     ///</summary>

19     
[global::System.Serializable()]
20     
[global::System.ComponentModel.DesignerCategoryAttribute("code")]
21     
[global::System.ComponentModel.ToolboxItem(true)]
22     
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")]
23     
[global::System.Xml.Serialization.XmlRootAttribute("SchedulerDataset")]
24     
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
25     
public partial class SchedulerDataset : global::System.Data.DataSet {
26         
27         
private TransientAppointmentsResourcesDataTable tableTransientAppointmentsResources;
28         
29         
private ResourcesDataTable tableResources;
30         
31         
private AppointmentsDataTable tableAppointments;
32         
33         
private global::System.Data.DataRelation relationFK_TransientAppointmentsResources_Appointments;
34         
35         
private global::System.Data.DataRelation relationFK_TransientAppointmentsResources_Resources;
36         
37         
private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
38         
39         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
40         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
41         
public SchedulerDataset() {
42             
this.BeginInit();
43             
this.InitClass();
44             
global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
45             
base.Tables.CollectionChanged += schemaChangedHandler;
46             
base.Relations.CollectionChanged += schemaChangedHandler;
47             
this.EndInit();
48         }
49         
50         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
51         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
52         
protected SchedulerDataset(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
53                 
base(info, context, false) {
54             
if ((this.IsBinarySerialized(info, context) == true)) {
55                 
this.InitVars(false);
56                 
global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
57                 
this.Tables.CollectionChanged += schemaChangedHandler1;
58                 
this.Relations.CollectionChanged += schemaChangedHandler1;
59                 
return;
60             }
61             
string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
62             
if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
63                 
global::System.Data.DataSet ds = new global::System.Data.DataSet();
64                 ds.ReadXmlSchema(
new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
65                 
if ((ds.Tables["TransientAppointmentsResources"] != null)) {
66                     
base.Tables.Add(new TransientAppointmentsResourcesDataTable(ds.Tables["TransientAppointmentsResources"]));
67                 }
68                 
if ((ds.Tables["Resources"] != null)) {
69                     
base.Tables.Add(new ResourcesDataTable(ds.Tables["Resources"]));
70                 }
71                 
if ((ds.Tables["Appointments"] != null)) {
72                     
base.Tables.Add(new AppointmentsDataTable(ds.Tables["Appointments"]));
73                 }
74                 
this.DataSetName = ds.DataSetName;
75                 
this.Prefix = ds.Prefix;
76                 
this.Namespace = ds.Namespace;
77                 
this.Locale = ds.Locale;
78                 
this.CaseSensitive = ds.CaseSensitive;
79                 
this.EnforceConstraints = ds.EnforceConstraints;
80                 
this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
81                 
this.InitVars();
82             }
83             
else {
84                 
this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
85             }
86             
this.GetSerializationData(info, context);
87             
global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
88             
base.Tables.CollectionChanged += schemaChangedHandler;
89             
this.Relations.CollectionChanged += schemaChangedHandler;
90         }
91         
92         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
93         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
94         
[global::System.ComponentModel.Browsable(false)]
95         
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
96         
public TransientAppointmentsResourcesDataTable TransientAppointmentsResources {
97             
get {
98                 
return this.tableTransientAppointmentsResources;
99             }
100         }
101         
102         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
103         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
104         
[global::System.ComponentModel.Browsable(false)]
105         
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
106         
public ResourcesDataTable Resources {
107             
get {
108                 
return this.tableResources;
109             }
110         }
111         
112         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
113         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
114         
[global::System.ComponentModel.Browsable(false)]
115         
[global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
116         
public AppointmentsDataTable Appointments {
117             
get {
118                 
return this.tableAppointments;
119             }
120         }
121         
122         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
123         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
124         
[global::System.ComponentModel.BrowsableAttribute(true)]
125         
[global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
126         
public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
127             
get {
128                 
return this._schemaSerializationMode;
129             }
130             
set {
131                 
this._schemaSerializationMode = value;
132             }
133         }
134         
135         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
136         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
137         
[global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
138         
public new global::System.Data.DataTableCollection Tables {
139             
get {
140                 
return base.Tables;
141             }
142         }
143         
144         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
145         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
146         
[global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
147         
public new global::System.Data.DataRelationCollection Relations {
148             
get {
149                 
return base.Relations;
150             }
151         }
152         
153         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
154         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
155         
protected override void InitializeDerivedDataSet() {
156             
this.BeginInit();
157             
this.InitClass();
158             
this.EndInit();
159         }
160         
161         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
162         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
163         
public override global::System.Data.DataSet Clone() {
164             SchedulerDataset cln = ((SchedulerDataset)(
base.Clone()));
165             cln.InitVars();
166             cln.SchemaSerializationMode =
this.SchemaSerializationMode;
167             
return cln;
168         }
169         
170         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
171         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
172         
protected override bool ShouldSerializeTables() {
173             
return false;
174         }
175         
176         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
177         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
178         
protected override bool ShouldSerializeRelations() {
179             
return false;
180         }
181         
182         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
183         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
184         
protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
185             
if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
186                 
this.Reset();
187                 
global::System.Data.DataSet ds = new global::System.Data.DataSet();
188                 ds.ReadXml(reader);
189                 
if ((ds.Tables["TransientAppointmentsResources"] != null)) {
190                     
base.Tables.Add(new TransientAppointmentsResourcesDataTable(ds.Tables["TransientAppointmentsResources"]));
191                 }
192                 
if ((ds.Tables["Resources"] != null)) {
193                     
base.Tables.Add(new ResourcesDataTable(ds.Tables["Resources"]));
194                 }
195                 
if ((ds.Tables["Appointments"] != null)) {
196                     
base.Tables.Add(new AppointmentsDataTable(ds.Tables["Appointments"]));
197                 }
198                 
this.DataSetName = ds.DataSetName;
199                 
this.Prefix = ds.Prefix;
200                 
this.Namespace = ds.Namespace;
201                 
this.Locale = ds.Locale;
202                 
this.CaseSensitive = ds.CaseSensitive;
203                 
this.EnforceConstraints = ds.EnforceConstraints;
204                 
this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
205                 
this.InitVars();
206             }
207             
else {
208                 
this.ReadXml(reader);
209                 
this.InitVars();
210             }
211         }
212         
213         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
214         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
215         
protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
216             
global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
217             
this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
218             stream.Position =
0;
219             
return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
220         }
221         
222         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
223         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
224         
internal void InitVars() {
225             
this.InitVars(true);
226         }
227         
228         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
229         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
230         
internal void InitVars(bool initTable) {
231             
this.tableTransientAppointmentsResources = ((TransientAppointmentsResourcesDataTable)(base.Tables["TransientAppointmentsResources"]));
232             
if ((initTable == true)) {
233                 
if ((this.tableTransientAppointmentsResources != null)) {
234                     
this.tableTransientAppointmentsResources.InitVars();
235                 }
236             }
237             
this.tableResources = ((ResourcesDataTable)(base.Tables["Resources"]));
238             
if ((initTable == true)) {
239                 
if ((this.tableResources != null)) {
240                     
this.tableResources.InitVars();
241                 }
242             }
243             
this.tableAppointments = ((AppointmentsDataTable)(base.Tables["Appointments"]));
244             
if ((initTable == true)) {
245                 
if ((this.tableAppointments != null)) {
246                     
this.tableAppointments.InitVars();
247                 }
248             }
249             
this.relationFK_TransientAppointmentsResources_Appointments = this.Relations["FK_TransientAppointmentsResources_Appointments"];
250             
this.relationFK_TransientAppointmentsResources_Resources = this.Relations["FK_TransientAppointmentsResources_Resources"];
251         }
252         
253         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
254         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
255         
private void InitClass() {
256             
this.DataSetName = "SchedulerDataset";
257             
this.Prefix = "";
258             
this.Namespace = "http://tempuri.org/SchedulerDataset.xsd";
259             
this.EnforceConstraints = true;
260             
this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
261             
this.tableTransientAppointmentsResources = new TransientAppointmentsResourcesDataTable();
262             
base.Tables.Add(this.tableTransientAppointmentsResources);
263             
this.tableResources = new ResourcesDataTable();
264             
base.Tables.Add(this.tableResources);
265             
this.tableAppointments = new AppointmentsDataTable();
266             
base.Tables.Add(this.tableAppointments);
267             
this.relationFK_TransientAppointmentsResources_Appointments = new global::System.Data.DataRelation("FK_TransientAppointmentsResources_Appointments", new global::System.Data.DataColumn[] {
268                         
this.tableAppointments.IDColumn}, new global::System.Data.DataColumn[] {
269                         
this.tableTransientAppointmentsResources.AppointmentIDColumn}, false);
270             
this.Relations.Add(this.relationFK_TransientAppointmentsResources_Appointments);
271             
this.relationFK_TransientAppointmentsResources_Resources = new global::System.Data.DataRelation("FK_TransientAppointmentsResources_Resources", new global::System.Data.DataColumn[] {
272                         
this.tableResources.IDColumn}, new global::System.Data.DataColumn[] {
273                         
this.tableTransientAppointmentsResources.ResourceIDColumn}, false);
274             
this.Relations.Add(this.relationFK_TransientAppointmentsResources_Resources);
275         }
276         
277         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
278         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
279         
private bool ShouldSerializeTransientAppointmentsResources() {
280             
return false;
281         }
282         
283         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
284         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
285         
private bool ShouldSerializeResources() {
286             
return false;
287         }
288         
289         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
290         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
291         
private bool ShouldSerializeAppointments() {
292             
return false;
293         }
294         
295         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
296         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
297         
private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
298             
if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
299                 
this.InitVars();
300             }
301         }
302         
303         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
304         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
305         
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
306             SchedulerDataset ds =
new SchedulerDataset();
307             
global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
308             
global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
309             
global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
310             any.Namespace = ds.Namespace;
311             sequence.Items.Add(any);
312             type.Particle = sequence;
313             
global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
314             
if (xs.Contains(dsSchema.TargetNamespace)) {
315                 
global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
316                 
global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
317                 
try {
318                     
global::System.Xml.Schema.XmlSchema schema = null;
319                     dsSchema.Write(s1);
320                     
for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
321                         schema = ((
global::System.Xml.Schema.XmlSchema)(schemas.Current));
322                         s2.SetLength(
0);
323                         schema.Write(s2);
324                         
if ((s1.Length == s2.Length)) {
325                             s1.Position =
0;
326                             s2.Position =
0;
327                             
for (; ((s1.Position != s1.Length)
328                                         && (s1.ReadByte() == s2.ReadByte())); ) {
329                                 ;
330                             }
331                             
if ((s1.Position == s1.Length)) {
332                                 
return type;
333                             }
334                         }
335                     }
336                 }
337                 
finally {
338                     
if ((s1 != null)) {
339                         s1.Close();
340                     }
341                     
if ((s2 != null)) {
342                         s2.Close();
343                     }
344                 }
345             }
346             xs.Add(dsSchema);
347             
return type;
348         }
349         
350         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
351         
public delegate void TransientAppointmentsResourcesRowChangeEventHandler(object sender, TransientAppointmentsResourcesRowChangeEvent e);
352         
353         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
354         
public delegate void ResourcesRowChangeEventHandler(object sender, ResourcesRowChangeEvent e);
355         
356         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
357         
public delegate void AppointmentsRowChangeEventHandler(object sender, AppointmentsRowChangeEvent e);
358         
359         ///
<summary>
360         ///
Represents the strongly named DataTable class.
361         ///</summary>

362         
[global::System.Serializable()]
363         
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
364         
public partial class TransientAppointmentsResourcesDataTable : global::System.Data.TypedTableBase<TransientAppointmentsResourcesRow> {
365             
366             
private global::System.Data.DataColumn columnAppointmentID;
367             
368             
private global::System.Data.DataColumn columnResourceID;
369             
370             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
371             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
372             
public TransientAppointmentsResourcesDataTable() {
373                 
this.TableName = "TransientAppointmentsResources";
374                 
this.BeginInit();
375                 
this.InitClass();
376                 
this.EndInit();
377             }
378             
379             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
380             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
381             
internal TransientAppointmentsResourcesDataTable(global::System.Data.DataTable table) {
382                 
this.TableName = table.TableName;
383                 
if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
384                     
this.CaseSensitive = table.CaseSensitive;
385                 }
386                 
if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
387                     
this.Locale = table.Locale;
388                 }
389                 
if ((table.Namespace != table.DataSet.Namespace)) {
390                     
this.Namespace = table.Namespace;
391                 }
392                 
this.Prefix = table.Prefix;
393                 
this.MinimumCapacity = table.MinimumCapacity;
394             }
395             
396             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
397             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
398             
protected TransientAppointmentsResourcesDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
399                     
base(info, context) {
400                 
this.InitVars();
401             }
402             
403             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
404             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
405             
public global::System.Data.DataColumn AppointmentIDColumn {
406                 
get {
407                     
return this.columnAppointmentID;
408                 }
409             }
410             
411             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
412             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
413             
public global::System.Data.DataColumn ResourceIDColumn {
414                 
get {
415                     
return this.columnResourceID;
416                 }
417             }
418             
419             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
420             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
421             
[global::System.ComponentModel.Browsable(false)]
422             
public int Count {
423                 
get {
424                     
return this.Rows.Count;
425                 }
426             }
427             
428             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
429             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
430             
public TransientAppointmentsResourcesRow this[int index] {
431                 
get {
432                     
return ((TransientAppointmentsResourcesRow)(this.Rows[index]));
433                 }
434             }
435             
436             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
437             
public event TransientAppointmentsResourcesRowChangeEventHandler TransientAppointmentsResourcesRowChanging;
438             
439             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
440             
public event TransientAppointmentsResourcesRowChangeEventHandler TransientAppointmentsResourcesRowChanged;
441             
442             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
443             
public event TransientAppointmentsResourcesRowChangeEventHandler TransientAppointmentsResourcesRowDeleting;
444             
445             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
446             
public event TransientAppointmentsResourcesRowChangeEventHandler TransientAppointmentsResourcesRowDeleted;
447             
448             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
449             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
450             
public void AddTransientAppointmentsResourcesRow(TransientAppointmentsResourcesRow row) {
451                 
this.Rows.Add(row);
452             }
453             
454             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
455             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
456             
public TransientAppointmentsResourcesRow AddTransientAppointmentsResourcesRow(AppointmentsRow parentAppointmentsRowByFK_TransientAppointmentsResources_Appointments, ResourcesRow parentResourcesRowByFK_TransientAppointmentsResources_Resources) {
457                 TransientAppointmentsResourcesRow rowTransientAppointmentsResourcesRow = ((TransientAppointmentsResourcesRow)(
this.NewRow()));
458                 
object[] columnValuesArray = new object[] {
459                         
null,
460                         
null};
461                 
if ((parentAppointmentsRowByFK_TransientAppointmentsResources_Appointments != null)) {
462                     columnValuesArray[
0] = parentAppointmentsRowByFK_TransientAppointmentsResources_Appointments[0];
463                 }
464                 
if ((parentResourcesRowByFK_TransientAppointmentsResources_Resources != null)) {
465                     columnValuesArray[
1] = parentResourcesRowByFK_TransientAppointmentsResources_Resources[0];
466                 }
467                 rowTransientAppointmentsResourcesRow.ItemArray = columnValuesArray;
468                 
this.Rows.Add(rowTransientAppointmentsResourcesRow);
469                 
return rowTransientAppointmentsResourcesRow;
470             }
471             
472             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
473             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
474             
public override global::System.Data.DataTable Clone() {
475                 TransientAppointmentsResourcesDataTable cln = ((TransientAppointmentsResourcesDataTable)(
base.Clone()));
476                 cln.InitVars();
477                 
return cln;
478             }
479             
480             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
481             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
482             
protected override global::System.Data.DataTable CreateInstance() {
483                 
return new TransientAppointmentsResourcesDataTable();
484             }
485             
486             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
487             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
488             
internal void InitVars() {
489                 
this.columnAppointmentID = base.Columns["AppointmentID"];
490                 
this.columnResourceID = base.Columns["ResourceID"];
491             }
492             
493             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
494             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
495             
private void InitClass() {
496                 
this.columnAppointmentID = new global::System.Data.DataColumn("AppointmentID", typeof(int), null, global::System.Data.MappingType.Element);
497                 
base.Columns.Add(this.columnAppointmentID);
498                 
this.columnResourceID = new global::System.Data.DataColumn("ResourceID", typeof(int), null, global::System.Data.MappingType.Element);
499                 
base.Columns.Add(this.columnResourceID);
500             }
501             
502             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
503             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
504             
public TransientAppointmentsResourcesRow NewTransientAppointmentsResourcesRow() {
505                 
return ((TransientAppointmentsResourcesRow)(this.NewRow()));
506             }
507             
508             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
509             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
510             
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
511                 
return new TransientAppointmentsResourcesRow(builder);
512             }
513             
514             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
515             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
516             
protected override global::System.Type GetRowType() {
517                 
return typeof(TransientAppointmentsResourcesRow);
518             }
519             
520             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
521             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
522             
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
523                 
base.OnRowChanged(e);
524                 
if ((this.TransientAppointmentsResourcesRowChanged != null)) {
525                     
this.TransientAppointmentsResourcesRowChanged(this, new TransientAppointmentsResourcesRowChangeEvent(((TransientAppointmentsResourcesRow)(e.Row)), e.Action));
526                 }
527             }
528             
529             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
530             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
531             
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
532                 
base.OnRowChanging(e);
533                 
if ((this.TransientAppointmentsResourcesRowChanging != null)) {
534                     
this.TransientAppointmentsResourcesRowChanging(this, new TransientAppointmentsResourcesRowChangeEvent(((TransientAppointmentsResourcesRow)(e.Row)), e.Action));
535                 }
536             }
537             
538             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
539             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
540             
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
541                 
base.OnRowDeleted(e);
542                 
if ((this.TransientAppointmentsResourcesRowDeleted != null)) {
543                     
this.TransientAppointmentsResourcesRowDeleted(this, new TransientAppointmentsResourcesRowChangeEvent(((TransientAppointmentsResourcesRow)(e.Row)), e.Action));
544                 }
545             }
546             
547             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
548             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
549             
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
550                 
base.OnRowDeleting(e);
551                 
if ((this.TransientAppointmentsResourcesRowDeleting != null)) {
552                     
this.TransientAppointmentsResourcesRowDeleting(this, new TransientAppointmentsResourcesRowChangeEvent(((TransientAppointmentsResourcesRow)(e.Row)), e.Action));
553                 }
554             }
555             
556             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
557             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
558             
public void RemoveTransientAppointmentsResourcesRow(TransientAppointmentsResourcesRow row) {
559                 
this.Rows.Remove(row);
560             }
561             
562             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
563             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
564             
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
565                 
global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
566                 
global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
567                 SchedulerDataset ds =
new SchedulerDataset();
568                 
global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
569                 any1.Namespace =
"http://www.w3.org/2001/XMLSchema";
570                 any1.MinOccurs =
new decimal(0);
571                 any1.MaxOccurs =
decimal.MaxValue;
572                 any1.ProcessContents =
global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
573                 sequence.Items.Add(any1);
574                 
global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
575                 any2.Namespace =
"urn:schemas-microsoft-com:xml-diffgram-v1";
576                 any2.MinOccurs =
new decimal(1);
577                 any2.ProcessContents =
global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
578                 sequence.Items.Add(any2);
579                 
global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
580                 attribute1.Name =
"namespace";
581                 attribute1.FixedValue = ds.Namespace;
582                 type.Attributes.Add(attribute1);
583                 
global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
584                 attribute2.Name =
"tableTypeName";
585                 attribute2.FixedValue =
"TransientAppointmentsResourcesDataTable";
586                 type.Attributes.Add(attribute2);
587                 type.Particle = sequence;
588                 
global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
589                 
if (xs.Contains(dsSchema.TargetNamespace)) {
590                     
global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
591                     
global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
592                     
try {
593                         
global::System.Xml.Schema.XmlSchema schema = null;
594                         dsSchema.Write(s1);
595                         
for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
596                             schema = ((
global::System.Xml.Schema.XmlSchema)(schemas.Current));
597                             s2.SetLength(
0);
598                             schema.Write(s2);
599                             
if ((s1.Length == s2.Length)) {
600                                 s1.Position =
0;
601                                 s2.Position =
0;
602                                 
for (; ((s1.Position != s1.Length)
603                                             && (s1.ReadByte() == s2.ReadByte())); ) {
604                                     ;
605                                 }
606                                 
if ((s1.Position == s1.Length)) {
607                                     
return type;
608                                 }
609                             }
610                         }
611                     }
612                     
finally {
613                         
if ((s1 != null)) {
614                             s1.Close();
615                         }
616                         
if ((s2 != null)) {
617                             s2.Close();
618                         }
619                     }
620                 }
621                 xs.Add(dsSchema);
622                 
return type;
623             }
624         }

625         
626         ///
<summary>
627         ///
Represents the strongly named DataTable class.
628         ///</summary>

629         
[global::System.Serializable()]
630         
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
631         
public partial class ResourcesDataTable : global::System.Data.TypedTableBase<ResourcesRow> {
632             
633             
private global::System.Data.DataColumn columnID;
634             
635             
private global::System.Data.DataColumn columnName;
636             
637             
private global::System.Data.DataColumn columnImage;
638             
639             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
640             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
641             
public ResourcesDataTable() {
642                 
this.TableName = "Resources";
643                 
this.BeginInit();
644                 
this.InitClass();
645                 
this.EndInit();
646             }
647             
648             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
649             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
650             
internal ResourcesDataTable(global::System.Data.DataTable table) {
651                 
this.TableName = table.TableName;
652                 
if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
653                     
this.CaseSensitive = table.CaseSensitive;
654                 }
655                 
if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
656                     
this.Locale = table.Locale;
657                 }
658                 
if ((table.Namespace != table.DataSet.Namespace)) {
659                     
this.Namespace = table.Namespace;
660                 }
661                 
this.Prefix = table.Prefix;
662                 
this.MinimumCapacity = table.MinimumCapacity;
663             }
664             
665             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
666             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
667             
protected ResourcesDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
668                     
base(info, context) {
669                 
this.InitVars();
670             }
671             
672             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
673             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
674             
public global::System.Data.DataColumn IDColumn {
675                 
get {
676                     
return this.columnID;
677                 }
678             }
679             
680             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
681             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
682             
public global::System.Data.DataColumn NameColumn {
683                 
get {
684                     
return this.columnName;
685                 }
686             }
687             
688             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
689             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
690             
public global::System.Data.DataColumn ImageColumn {
691                 
get {
692                     
return this.columnImage;
693                 }
694             }
695             
696             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
697             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
698             
[global::System.ComponentModel.Browsable(false)]
699             
public int Count {
700                 
get {
701                     
return this.Rows.Count;
702                 }
703             }
704             
705             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
706             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
707             
public ResourcesRow this[int index] {
708                 
get {
709                     
return ((ResourcesRow)(this.Rows[index]));
710                 }
711             }
712             
713             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
714             
public event ResourcesRowChangeEventHandler ResourcesRowChanging;
715             
716             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
717             
public event ResourcesRowChangeEventHandler ResourcesRowChanged;
718             
719             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
720             
public event ResourcesRowChangeEventHandler ResourcesRowDeleting;
721             
722             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
723             
public event ResourcesRowChangeEventHandler ResourcesRowDeleted;
724             
725             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
726             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
727             
public void AddResourcesRow(ResourcesRow row) {
728                 
this.Rows.Add(row);
729             }
730             
731             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
732             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
733             
public ResourcesRow AddResourcesRow(int ID, string Name, byte[] Image) {
734                 ResourcesRow rowResourcesRow = ((ResourcesRow)(
this.NewRow()));
735                 
object[] columnValuesArray = new object[] {
736                         ID,
737                         Name,
738                         Image};
739                 rowResourcesRow.ItemArray = columnValuesArray;
740                 
this.Rows.Add(rowResourcesRow);
741                 
return rowResourcesRow;
742             }
743             
744             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
745             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
746             
public ResourcesRow FindByID(int ID) {
747                 
return ((ResourcesRow)(this.Rows.Find(new object[] {
748                             ID})));
749             }
750             
751             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
752             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
753             
public override global::System.Data.DataTable Clone() {
754                 ResourcesDataTable cln = ((ResourcesDataTable)(
base.Clone()));
755                 cln.InitVars();
756                 
return cln;
757             }
758             
759             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
760             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
761             
protected override global::System.Data.DataTable CreateInstance() {
762                 
return new ResourcesDataTable();
763             }
764             
765             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
766             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
767             
internal void InitVars() {
768                 
this.columnID = base.Columns["ID"];
769                 
this.columnName = base.Columns["Name"];
770                 
this.columnImage = base.Columns["Image"];
771             }
772             
773             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
774             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
775             
private void InitClass() {
776                 
this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
777                 
base.Columns.Add(this.columnID);
778                 
this.columnName = new global::System.Data.DataColumn("Name", typeof(string), null, global::System.Data.MappingType.Element);
779                 
base.Columns.Add(this.columnName);
780                 
this.columnImage = new global::System.Data.DataColumn("Image", typeof(byte[]), null, global::System.Data.MappingType.Element);
781                 
base.Columns.Add(this.columnImage);
782                 
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
783                                 
this.columnID}, true));
784                 
this.columnID.AllowDBNull = false;
785                 
this.columnID.Unique = true;
786                 
this.columnName.AllowDBNull = false;
787                 
this.columnName.MaxLength = 255;
788             }
789             
790             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
791             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
792             
public ResourcesRow NewResourcesRow() {
793                 
return ((ResourcesRow)(this.NewRow()));
794             }
795             
796             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
797             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
798             
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
799                 
return new ResourcesRow(builder);
800             }
801             
802             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
803             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
804             
protected override global::System.Type GetRowType() {
805                 
return typeof(ResourcesRow);
806             }
807             
808             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
809             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
810             
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
811                 
base.OnRowChanged(e);
812                 
if ((this.ResourcesRowChanged != null)) {
813                     
this.ResourcesRowChanged(this, new ResourcesRowChangeEvent(((ResourcesRow)(e.Row)), e.Action));
814                 }
815             }
816             
817             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
818             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
819             
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
820                 
base.OnRowChanging(e);
821                 
if ((this.ResourcesRowChanging != null)) {
822                     
this.ResourcesRowChanging(this, new ResourcesRowChangeEvent(((ResourcesRow)(e.Row)), e.Action));
823                 }
824             }
825             
826             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
827             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
828             
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
829                 
base.OnRowDeleted(e);
830                 
if ((this.ResourcesRowDeleted != null)) {
831                     
this.ResourcesRowDeleted(this, new ResourcesRowChangeEvent(((ResourcesRow)(e.Row)), e.Action));
832                 }
833             }
834             
835             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
836             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
837             
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
838                 
base.OnRowDeleting(e);
839                 
if ((this.ResourcesRowDeleting != null)) {
840                     
this.ResourcesRowDeleting(this, new ResourcesRowChangeEvent(((ResourcesRow)(e.Row)), e.Action));
841                 }
842             }
843             
844             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
845             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
846             
public void RemoveResourcesRow(ResourcesRow row) {
847                 
this.Rows.Remove(row);
848             }
849             
850             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
851             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
852             
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
853                 
global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
854                 
global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
855                 SchedulerDataset ds =
new SchedulerDataset();
856                 
global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
857                 any1.Namespace =
"http://www.w3.org/2001/XMLSchema";
858                 any1.MinOccurs =
new decimal(0);
859                 any1.MaxOccurs =
decimal.MaxValue;
860                 any1.ProcessContents =
global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
861                 sequence.Items.Add(any1);
862                 
global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
863                 any2.Namespace =
"urn:schemas-microsoft-com:xml-diffgram-v1";
864                 any2.MinOccurs =
new decimal(1);
865                 any2.ProcessContents =
global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
866                 sequence.Items.Add(any2);
867                 
global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
868                 attribute1.Name =
"namespace";
869                 attribute1.FixedValue = ds.Namespace;
870                 type.Attributes.Add(attribute1);
871                 
global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
872                 attribute2.Name =
"tableTypeName";
873                 attribute2.FixedValue =
"ResourcesDataTable";
874                 type.Attributes.Add(attribute2);
875                 type.Particle = sequence;
876                 
global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
877                 
if (xs.Contains(dsSchema.TargetNamespace)) {
878                     
global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
879                     
global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
880                     
try {
881                         
global::System.Xml.Schema.XmlSchema schema = null;
882                         dsSchema.Write(s1);
883                         
for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
884                             schema = ((
global::System.Xml.Schema.XmlSchema)(schemas.Current));
885                             s2.SetLength(
0);
886                             schema.Write(s2);
887                             
if ((s1.Length == s2.Length)) {
888                                 s1.Position =
0;
889                                 s2.Position =
0;
890                                 
for (; ((s1.Position != s1.Length)
891                                             && (s1.ReadByte() == s2.ReadByte())); ) {
892                                     ;
893                                 }
894                                 
if ((s1.Position == s1.Length)) {
895                                     
return type;
896                                 }
897                             }
898                         }
899                     }
900                     
finally {
901                         
if ((s1 != null)) {
902                             s1.Close();
903                         }
904                         
if ((s2 != null)) {
905                             s2.Close();
906                         }
907                     }
908                 }
909                 xs.Add(dsSchema);
910                 
return type;
911             }
912         }

913         
914         ///
<summary>
915         ///
Represents the strongly named DataTable class.
916         ///</summary>

917         
[global::System.Serializable()]
918         
[global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
919         
public partial class AppointmentsDataTable : global::System.Data.TypedTableBase<AppointmentsRow> {
920             
921             
private global::System.Data.DataColumn columnID;
922             
923             
private global::System.Data.DataColumn columnSummary;
924             
925             
private global::System.Data.DataColumn columnStart;
926             
927             
private global::System.Data.DataColumn columnEnd;
928             
929             
private global::System.Data.DataColumn columnRecurrenceRule;
930             
931             
private global::System.Data.DataColumn columnMasterEventId;
932             
933             
private global::System.Data.DataColumn columnLocation;
934             
935             
private global::System.Data.DataColumn columnDescription;
936             
937             
private global::System.Data.DataColumn columnBackgroundId;
938             
939             
private global::System.Data.DataColumn columnStatusID;
940             
941             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
942             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
943             
public AppointmentsDataTable() {
944                 
this.TableName = "Appointments";
945                 
this.BeginInit();
946                 
this.InitClass();
947                 
this.EndInit();
948             }
949             
950             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
951             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
952             
internal AppointmentsDataTable(global::System.Data.DataTable table) {
953                 
this.TableName = table.TableName;
954                 
if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
955                     
this.CaseSensitive = table.CaseSensitive;
956                 }
957                 
if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
958                     
this.Locale = table.Locale;
959                 }
960                 
if ((table.Namespace != table.DataSet.Namespace)) {
961                     
this.Namespace = table.Namespace;
962                 }
963                 
this.Prefix = table.Prefix;
964                 
this.MinimumCapacity = table.MinimumCapacity;
965             }
966             
967             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
968             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
969             
protected AppointmentsDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
970                     
base(info, context) {
971                 
this.InitVars();
972             }
973             
974             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
975             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
976             
public global::System.Data.DataColumn IDColumn {
977                 
get {
978                     
return this.columnID;
979                 }
980             }
981             
982             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
983             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
984             
public global::System.Data.DataColumn SummaryColumn {
985                 
get {
986                     
return this.columnSummary;
987                 }
988             }
989             
990             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
991             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
992             
public global::System.Data.DataColumn StartColumn {
993                 
get {
994                     
return this.columnStart;
995                 }
996             }
997             
998             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
999             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1000             
public global::System.Data.DataColumn EndColumn {
1001                 
get {
1002                     
return this.columnEnd;
1003                 }
1004             }
1005             
1006             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1007             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1008             
public global::System.Data.DataColumn RecurrenceRuleColumn {
1009                 
get {
1010                     
return this.columnRecurrenceRule;
1011                 }
1012             }
1013             
1014             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1015             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1016             
public global::System.Data.DataColumn MasterEventIdColumn {
1017                 
get {
1018                     
return this.columnMasterEventId;
1019                 }
1020             }
1021             
1022             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1023             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1024             
public global::System.Data.DataColumn LocationColumn {
1025                 
get {
1026                     
return this.columnLocation;
1027                 }
1028             }
1029             
1030             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1031             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1032             
public global::System.Data.DataColumn DescriptionColumn {
1033                 
get {
1034                     
return this.columnDescription;
1035                 }
1036             }
1037             
1038             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1039             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1040             
public global::System.Data.DataColumn BackgroundIdColumn {
1041                 
get {
1042                     
return this.columnBackgroundId;
1043                 }
1044             }
1045             
1046             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1047             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1048             
public global::System.Data.DataColumn StatusIDColumn {
1049                 
get {
1050                     
return this.columnStatusID;
1051                 }
1052             }
1053             
1054             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1055             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1056             
[global::System.ComponentModel.Browsable(false)]
1057             
public int Count {
1058                 
get {
1059                     
return this.Rows.Count;
1060                 }
1061             }
1062             
1063             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1064             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1065             
public AppointmentsRow this[int index] {
1066                 
get {
1067                     
return ((AppointmentsRow)(this.Rows[index]));
1068                 }
1069             }
1070             
1071             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1072             
public event AppointmentsRowChangeEventHandler AppointmentsRowChanging;
1073             
1074             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1075             
public event AppointmentsRowChangeEventHandler AppointmentsRowChanged;
1076             
1077             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1078             
public event AppointmentsRowChangeEventHandler AppointmentsRowDeleting;
1079             
1080             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1081             
public event AppointmentsRowChangeEventHandler AppointmentsRowDeleted;
1082             
1083             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1084             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1085             
public void AddAppointmentsRow(AppointmentsRow row) {
1086                 
this.Rows.Add(row);
1087             }
1088             
1089             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1090             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1091             
public AppointmentsRow AddAppointmentsRow(string Summary, System.DateTime Start, System.DateTime End, string RecurrenceRule, int MasterEventId, string Location, string Description, int BackgroundId, int StatusID) {
1092                 AppointmentsRow rowAppointmentsRow = ((AppointmentsRow)(
this.NewRow()));
1093                 
object[] columnValuesArray = new object[] {
1094                         
null,
1095                         Summary,
1096                         Start,
1097                         End,
1098                         RecurrenceRule,
1099                         MasterEventId,
1100                         Location,
1101                         Description,
1102                         BackgroundId,
1103                         StatusID};
1104                 rowAppointmentsRow.ItemArray = columnValuesArray;
1105                 
this.Rows.Add(rowAppointmentsRow);
1106                 
return rowAppointmentsRow;
1107             }
1108             
1109             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1110             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1111             
public AppointmentsRow FindByID(int ID) {
1112                 
return ((AppointmentsRow)(this.Rows.Find(new object[] {
1113                             ID})));
1114             }
1115             
1116             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1117             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1118             
public override global::System.Data.DataTable Clone() {
1119                 AppointmentsDataTable cln = ((AppointmentsDataTable)(
base.Clone()));
1120                 cln.InitVars();
1121                 
return cln;
1122             }
1123             
1124             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1125             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1126             
protected override global::System.Data.DataTable CreateInstance() {
1127                 
return new AppointmentsDataTable();
1128             }
1129             
1130             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1131             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1132             
internal void InitVars() {
1133                 
this.columnID = base.Columns["ID"];
1134                 
this.columnSummary = base.Columns["Summary"];
1135                 
this.columnStart = base.Columns["Start"];
1136                 
this.columnEnd = base.Columns["End"];
1137                 
this.columnRecurrenceRule = base.Columns["RecurrenceRule"];
1138                 
this.columnMasterEventId = base.Columns["MasterEventId"];
1139                 
this.columnLocation = base.Columns["Location"];
1140                 
this.columnDescription = base.Columns["Description"];
1141                 
this.columnBackgroundId = base.Columns["BackgroundId"];
1142                 
this.columnStatusID = base.Columns["StatusID"];
1143             }
1144             
1145             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1146             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1147             
private void InitClass() {
1148                 
this.columnID = new global::System.Data.DataColumn("ID", typeof(int), null, global::System.Data.MappingType.Element);
1149                 
base.Columns.Add(this.columnID);
1150                 
this.columnSummary = new global::System.Data.DataColumn("Summary", typeof(string), null, global::System.Data.MappingType.Element);
1151                 
base.Columns.Add(this.columnSummary);
1152                 
this.columnStart = new global::System.Data.DataColumn("Start", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
1153                 
base.Columns.Add(this.columnStart);
1154                 
this.columnEnd = new global::System.Data.DataColumn("End", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
1155                 
base.Columns.Add(this.columnEnd);
1156                 
this.columnRecurrenceRule = new global::System.Data.DataColumn("RecurrenceRule", typeof(string), null, global::System.Data.MappingType.Element);
1157                 
base.Columns.Add(this.columnRecurrenceRule);
1158                 
this.columnMasterEventId = new global::System.Data.DataColumn("MasterEventId", typeof(int), null, global::System.Data.MappingType.Element);
1159                 
base.Columns.Add(this.columnMasterEventId);
1160                 
this.columnLocation = new global::System.Data.DataColumn("Location", typeof(string), null, global::System.Data.MappingType.Element);
1161                 
base.Columns.Add(this.columnLocation);
1162                 
this.columnDescription = new global::System.Data.DataColumn("Description", typeof(string), null, global::System.Data.MappingType.Element);
1163                 
base.Columns.Add(this.columnDescription);
1164                 
this.columnBackgroundId = new global::System.Data.DataColumn("BackgroundId", typeof(int), null, global::System.Data.MappingType.Element);
1165                 
base.Columns.Add(this.columnBackgroundId);
1166                 
this.columnStatusID = new global::System.Data.DataColumn("StatusID", typeof(int), null, global::System.Data.MappingType.Element);
1167                 
base.Columns.Add(this.columnStatusID);
1168                 
this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
1169                                 
this.columnID}, true));
1170                 
this.columnID.AutoIncrement = true;
1171                 
this.columnID.AutoIncrementSeed = -1;
1172                 
this.columnID.AutoIncrementStep = -1;
1173                 
this.columnID.AllowDBNull = false;
1174                 
this.columnID.ReadOnly = true;
1175                 
this.columnID.Unique = true;
1176                 
this.columnSummary.AllowDBNull = false;
1177                 
this.columnSummary.MaxLength = 255;
1178                 
this.columnStart.AllowDBNull = false;
1179                 
this.columnEnd.AllowDBNull = false;
1180                 
this.columnRecurrenceRule.MaxLength = 1024;
1181                 
this.columnLocation.MaxLength = 255;
1182                 
this.columnDescription.MaxLength = 1073741823;
1183                 
this.columnBackgroundId.AllowDBNull = false;
1184             }
1185             
1186             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1187             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1188             
public AppointmentsRow NewAppointmentsRow() {
1189                 
return ((AppointmentsRow)(this.NewRow()));
1190             }
1191             
1192             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1193             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1194             
protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
1195                 
return new AppointmentsRow(builder);
1196             }
1197             
1198             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1199             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1200             
protected override global::System.Type GetRowType() {
1201                 
return typeof(AppointmentsRow);
1202             }
1203             
1204             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1205             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1206             
protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
1207                 
base.OnRowChanged(e);
1208                 
if ((this.AppointmentsRowChanged != null)) {
1209                     
this.AppointmentsRowChanged(this, new AppointmentsRowChangeEvent(((AppointmentsRow)(e.Row)), e.Action));
1210                 }
1211             }
1212             
1213             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1214             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1215             
protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
1216                 
base.OnRowChanging(e);
1217                 
if ((this.AppointmentsRowChanging != null)) {
1218                     
this.AppointmentsRowChanging(this, new AppointmentsRowChangeEvent(((AppointmentsRow)(e.Row)), e.Action));
1219                 }
1220             }
1221             
1222             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1223             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1224             
protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
1225                 
base.OnRowDeleted(e);
1226                 
if ((this.AppointmentsRowDeleted != null)) {
1227                     
this.AppointmentsRowDeleted(this, new AppointmentsRowChangeEvent(((AppointmentsRow)(e.Row)), e.Action));
1228                 }
1229             }
1230             
1231             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1232             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1233             
protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
1234                 
base.OnRowDeleting(e);
1235                 
if ((this.AppointmentsRowDeleting != null)) {
1236                     
this.AppointmentsRowDeleting(this, new AppointmentsRowChangeEvent(((AppointmentsRow)(e.Row)), e.Action));
1237                 }
1238             }
1239             
1240             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1241             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1242             
public void RemoveAppointmentsRow(AppointmentsRow row) {
1243                 
this.Rows.Remove(row);
1244             }
1245             
1246             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1247             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1248             
public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
1249                 
global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
1250                 
global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
1251                 SchedulerDataset ds =
new SchedulerDataset();
1252                 
global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
1253                 any1.Namespace =
"http://www.w3.org/2001/XMLSchema";
1254                 any1.MinOccurs =
new decimal(0);
1255                 any1.MaxOccurs =
decimal.MaxValue;
1256                 any1.ProcessContents =
global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
1257                 sequence.Items.Add(any1);
1258                 
global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
1259                 any2.Namespace =
"urn:schemas-microsoft-com:xml-diffgram-v1";
1260                 any2.MinOccurs =
new decimal(1);
1261                 any2.ProcessContents =
global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
1262                 sequence.Items.Add(any2);
1263                 
global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
1264                 attribute1.Name =
"namespace";
1265                 attribute1.FixedValue = ds.Namespace;
1266                 type.Attributes.Add(attribute1);
1267                 
global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
1268                 attribute2.Name =
"tableTypeName";
1269                 attribute2.FixedValue =
"AppointmentsDataTable";
1270                 type.Attributes.Add(attribute2);
1271                 type.Particle = sequence;
1272                 
global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
1273                 
if (xs.Contains(dsSchema.TargetNamespace)) {
1274                     
global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
1275                     
global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
1276                     
try {
1277                         
global::System.Xml.Schema.XmlSchema schema = null;
1278                         dsSchema.Write(s1);
1279                         
for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
1280                             schema = ((
global::System.Xml.Schema.XmlSchema)(schemas.Current));
1281                             s2.SetLength(
0);
1282                             schema.Write(s2);
1283                             
if ((s1.Length == s2.Length)) {
1284                                 s1.Position =
0;
1285                                 s2.Position =
0;
1286                                 
for (; ((s1.Position != s1.Length)
1287                                             && (s1.ReadByte() == s2.ReadByte())); ) {
1288                                     ;
1289                                 }
1290                                 
if ((s1.Position == s1.Length)) {
1291                                     
return type;
1292                                 }
1293                             }
1294                         }
1295                     }
1296                     
finally {
1297                         
if ((s1 != null)) {
1298                             s1.Close();
1299                         }
1300                         
if ((s2 != null)) {
1301                             s2.Close();
1302                         }
1303                     }
1304                 }
1305                 xs.Add(dsSchema);
1306                 
return type;
1307             }
1308         }

1309         
1310         ///
<summary>
1311         ///
Represents strongly named DataRow class.
1312         ///</summary>

1313         
public partial class TransientAppointmentsResourcesRow : global::System.Data.DataRow {
1314             
1315             
private TransientAppointmentsResourcesDataTable tableTransientAppointmentsResources;
1316             
1317             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1318             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1319             
internal TransientAppointmentsResourcesRow(global::System.Data.DataRowBuilder rb) :
1320                     
base(rb) {
1321                 
this.tableTransientAppointmentsResources = ((TransientAppointmentsResourcesDataTable)(this.Table));
1322             }
1323             
1324             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1325             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1326             
public int AppointmentID {
1327                 
get {
1328                     
try {
1329                         
return ((int)(this[this.tableTransientAppointmentsResources.AppointmentIDColumn]));
1330                     }
1331                     
catch (global::System.InvalidCastException e) {
1332                         
throw new global::System.Data.StrongTypingException("The value for column \'AppointmentID\' in table \'TransientAppointmentsResources\' is" +
1333                                 
" DBNull.", e);
1334                     }
1335                 }
1336                 
set {
1337                     
this[this.tableTransientAppointmentsResources.AppointmentIDColumn] = value;
1338                 }
1339             }
1340             
1341             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1342             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1343             
public int ResourceID {
1344                 
get {
1345                     
try {
1346                         
return ((int)(this[this.tableTransientAppointmentsResources.ResourceIDColumn]));
1347                     }
1348                     
catch (global::System.InvalidCastException e) {
1349                         
throw new global::System.Data.StrongTypingException("The value for column \'ResourceID\' in table \'TransientAppointmentsResources\' is DB" +
1350                                 
"Null.", e);
1351                     }
1352                 }
1353                 
set {
1354                     
this[this.tableTransientAppointmentsResources.ResourceIDColumn] = value;
1355                 }
1356             }
1357             
1358             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1359             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1360             
public AppointmentsRow AppointmentsRow {
1361                 
get {
1362                     
return ((AppointmentsRow)(this.GetParentRow(this.Table.ParentRelations["FK_TransientAppointmentsResources_Appointments"])));
1363                 }
1364                 
set {
1365                     
this.SetParentRow(value, this.Table.ParentRelations["FK_TransientAppointmentsResources_Appointments"]);
1366                 }
1367             }
1368             
1369             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1370             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1371             
public ResourcesRow ResourcesRow {
1372                 
get {
1373                     
return ((ResourcesRow)(this.GetParentRow(this.Table.ParentRelations["FK_TransientAppointmentsResources_Resources"])));
1374                 }
1375                 
set {
1376                     
this.SetParentRow(value, this.Table.ParentRelations["FK_TransientAppointmentsResources_Resources"]);
1377                 }
1378             }
1379             
1380             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1381             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1382             
public bool IsAppointmentIDNull() {
1383                 
return this.IsNull(this.tableTransientAppointmentsResources.AppointmentIDColumn);
1384             }
1385             
1386             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1387             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1388             
public void SetAppointmentIDNull() {
1389                 
this[this.tableTransientAppointmentsResources.AppointmentIDColumn] = global::System.Convert.DBNull;
1390             }
1391             
1392             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1393             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1394             
public bool IsResourceIDNull() {
1395                 
return this.IsNull(this.tableTransientAppointmentsResources.ResourceIDColumn);
1396             }
1397             
1398             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1399             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1400             
public void SetResourceIDNull() {
1401                 
this[this.tableTransientAppointmentsResources.ResourceIDColumn] = global::System.Convert.DBNull;
1402             }
1403         }

1404         
1405         ///
<summary>
1406         ///
Represents strongly named DataRow class.
1407         ///</summary>

1408         
public partial class ResourcesRow : global::System.Data.DataRow {
1409             
1410             
private ResourcesDataTable tableResources;
1411             
1412             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1413             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1414             
internal ResourcesRow(global::System.Data.DataRowBuilder rb) :
1415                     
base(rb) {
1416                 
this.tableResources = ((ResourcesDataTable)(this.Table));
1417             }
1418             
1419             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1420             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1421             
public int ID {
1422                 
get {
1423                     
return ((int)(this[this.tableResources.IDColumn]));
1424                 }
1425                 
set {
1426                     
this[this.tableResources.IDColumn] = value;
1427                 }
1428             }
1429             
1430             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1431             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1432             
public string Name {
1433                 
get {
1434                     
return ((string)(this[this.tableResources.NameColumn]));
1435                 }
1436                 
set {
1437                     
this[this.tableResources.NameColumn] = value;
1438                 }
1439             }
1440             
1441             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1442             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1443             
public byte[] Image {
1444                 
get {
1445                     
try {
1446                         
return ((byte[])(this[this.tableResources.ImageColumn]));
1447                     }
1448                     
catch (global::System.InvalidCastException e) {
1449                         
throw new global::System.Data.StrongTypingException("The value for column \'Image\' in table \'Resources\' is DBNull.", e);
1450                     }
1451                 }
1452                 
set {
1453                     
this[this.tableResources.ImageColumn] = value;
1454                 }
1455             }
1456             
1457             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1458             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1459             
public bool IsImageNull() {
1460                 
return this.IsNull(this.tableResources.ImageColumn);
1461             }
1462             
1463             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1464             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1465             
public void SetImageNull() {
1466                 
this[this.tableResources.ImageColumn] = global::System.Convert.DBNull;
1467             }
1468             
1469             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1470             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1471             
public TransientAppointmentsResourcesRow[] GetTransientAppointmentsResourcesRows() {
1472                 
if ((this.Table.ChildRelations["FK_TransientAppointmentsResources_Resources"] == null)) {
1473                     
return new TransientAppointmentsResourcesRow[0];
1474                 }
1475                 
else {
1476                     
return ((TransientAppointmentsResourcesRow[])(base.GetChildRows(this.Table.ChildRelations["FK_TransientAppointmentsResources_Resources"])));
1477                 }
1478             }
1479         }

1480         
1481         ///
<summary>
1482         ///
Represents strongly named DataRow class.
1483         ///</summary>

1484         
public partial class AppointmentsRow : global::System.Data.DataRow {
1485             
1486             
private AppointmentsDataTable tableAppointments;
1487             
1488             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1489             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1490             
internal AppointmentsRow(global::System.Data.DataRowBuilder rb) :
1491                     
base(rb) {
1492                 
this.tableAppointments = ((AppointmentsDataTable)(this.Table));
1493             }
1494             
1495             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1496             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1497             
public int ID {
1498                 
get {
1499                     
return ((int)(this[this.tableAppointments.IDColumn]));
1500                 }
1501                 
set {
1502                     
this[this.tableAppointments.IDColumn] = value;
1503                 }
1504             }
1505             
1506             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1507             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1508             
public string Summary {
1509                 
get {
1510                     
return ((string)(this[this.tableAppointments.SummaryColumn]));
1511                 }
1512                 
set {
1513                     
this[this.tableAppointments.SummaryColumn] = value;
1514                 }
1515             }
1516             
1517             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1518             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1519             
public System.DateTime Start {
1520                 
get {
1521                     
return ((global::System.DateTime)(this[this.tableAppointments.StartColumn]));
1522                 }
1523                 
set {
1524                     
this[this.tableAppointments.StartColumn] = value;
1525                 }
1526             }
1527             
1528             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1529             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1530             
public System.DateTime End {
1531                 
get {
1532                     
return ((global::System.DateTime)(this[this.tableAppointments.EndColumn]));
1533                 }
1534                 
set {
1535                     
this[this.tableAppointments.EndColumn] = value;
1536                 }
1537             }
1538             
1539             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1540             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1541             
public string RecurrenceRule {
1542                 
get {
1543                     
try {
1544                         
return ((string)(this[this.tableAppointments.RecurrenceRuleColumn]));
1545                     }
1546                     
catch (global::System.InvalidCastException e) {
1547                         
throw new global::System.Data.StrongTypingException("The value for column \'RecurrenceRule\' in table \'Appointments\' is DBNull.", e);
1548                     }
1549                 }
1550                 
set {
1551                     
this[this.tableAppointments.RecurrenceRuleColumn] = value;
1552                 }
1553             }
1554             
1555             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1556             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1557             
public int MasterEventId {
1558                 
get {
1559                     
try {
1560                         
return ((int)(this[this.tableAppointments.MasterEventIdColumn]));
1561                     }
1562                     
catch (global::System.InvalidCastException e) {
1563                         
throw new global::System.Data.StrongTypingException("The value for column \'MasterEventId\' in table \'Appointments\' is DBNull.", e);
1564                     }
1565                 }
1566                 
set {
1567                     
this[this.tableAppointments.MasterEventIdColumn] = value;
1568                 }
1569             }
1570             
1571             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1572             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1573             
public string Location {
1574                 
get {
1575                     
try {
1576                         
return ((string)(this[this.tableAppointments.LocationColumn]));
1577                     }
1578                     
catch (global::System.InvalidCastException e) {
1579                         
throw new global::System.Data.StrongTypingException("The value for column \'Location\' in table \'Appointments\' is DBNull.", e);
1580                     }
1581                 }
1582                 
set {
1583                     
this[this.tableAppointments.LocationColumn] = value;
1584                 }
1585             }
1586             
1587             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1588             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1589             
public string Description {
1590                 
get {
1591                     
try {
1592                         
return ((string)(this[this.tableAppointments.DescriptionColumn]));
1593                     }
1594                     
catch (global::System.InvalidCastException e) {
1595                         
throw new global::System.Data.StrongTypingException("The value for column \'Description\' in table \'Appointments\' is DBNull.", e);
1596                     }
1597                 }
1598                 
set {
1599                     
this[this.tableAppointments.DescriptionColumn] = value;
1600                 }
1601             }
1602             
1603             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1604             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1605             
public int BackgroundId {
1606                 
get {
1607                     
return ((int)(this[this.tableAppointments.BackgroundIdColumn]));
1608                 }
1609                 
set {
1610                     
this[this.tableAppointments.BackgroundIdColumn] = value;
1611                 }
1612             }
1613             
1614             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1615             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1616             
public int StatusID {
1617                 
get {
1618                     
try {
1619                         
return ((int)(this[this.tableAppointments.StatusIDColumn]));
1620                     }
1621                     
catch (global::System.InvalidCastException e) {
1622                         
throw new global::System.Data.StrongTypingException("The value for column \'StatusID\' in table \'Appointments\' is DBNull.", e);
1623                     }
1624                 }
1625                 
set {
1626                     
this[this.tableAppointments.StatusIDColumn] = value;
1627                 }
1628             }
1629             
1630             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1631             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1632             
public bool IsRecurrenceRuleNull() {
1633                 
return this.IsNull(this.tableAppointments.RecurrenceRuleColumn);
1634             }
1635             
1636             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1637             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1638             
public void SetRecurrenceRuleNull() {
1639                 
this[this.tableAppointments.RecurrenceRuleColumn] = global::System.Convert.DBNull;
1640             }
1641             
1642             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1643             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1644             
public bool IsMasterEventIdNull() {
1645                 
return this.IsNull(this.tableAppointments.MasterEventIdColumn);
1646             }
1647             
1648             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1649             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1650             
public void SetMasterEventIdNull() {
1651                 
this[this.tableAppointments.MasterEventIdColumn] = global::System.Convert.DBNull;
1652             }
1653             
1654             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1655             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1656             
public bool IsLocationNull() {
1657                 
return this.IsNull(this.tableAppointments.LocationColumn);
1658             }
1659             
1660             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1661             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1662             
public void SetLocationNull() {
1663                 
this[this.tableAppointments.LocationColumn] = global::System.Convert.DBNull;
1664             }
1665             
1666             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1667             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1668             
public bool IsDescriptionNull() {
1669                 
return this.IsNull(this.tableAppointments.DescriptionColumn);
1670             }
1671             
1672             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1673             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1674             
public void SetDescriptionNull() {
1675                 
this[this.tableAppointments.DescriptionColumn] = global::System.Convert.DBNull;
1676             }
1677             
1678             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1679             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1680             
public bool IsStatusIDNull() {
1681                 
return this.IsNull(this.tableAppointments.StatusIDColumn);
1682             }
1683             
1684             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1685             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1686             
public void SetStatusIDNull() {
1687                 
this[this.tableAppointments.StatusIDColumn] = global::System.Convert.DBNull;
1688             }
1689             
1690             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1691             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1692             
public TransientAppointmentsResourcesRow[] GetTransientAppointmentsResourcesRows() {
1693                 
if ((this.Table.ChildRelations["FK_TransientAppointmentsResources_Appointments"] == null)) {
1694                     
return new TransientAppointmentsResourcesRow[0];
1695                 }
1696                 
else {
1697                     
return ((TransientAppointmentsResourcesRow[])(base.GetChildRows(this.Table.ChildRelations["FK_TransientAppointmentsResources_Appointments"])));
1698                 }
1699             }
1700         }

1701         
1702         ///
<summary>
1703         ///
Row event argument class
1704         ///</summary>

1705         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1706         
public class TransientAppointmentsResourcesRowChangeEvent : global::System.EventArgs {
1707             
1708             
private TransientAppointmentsResourcesRow eventRow;
1709             
1710             
private global::System.Data.DataRowAction eventAction;
1711             
1712             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1713             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1714             
public TransientAppointmentsResourcesRowChangeEvent(TransientAppointmentsResourcesRow row, global::System.Data.DataRowAction action) {
1715                 
this.eventRow = row;
1716                 
this.eventAction = action;
1717             }
1718             
1719             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1720             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1721             
public TransientAppointmentsResourcesRow Row {
1722                 
get {
1723                     
return this.eventRow;
1724                 }
1725             }
1726             
1727             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1728             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1729             
public global::System.Data.DataRowAction Action {
1730                 
get {
1731                     
return this.eventAction;
1732                 }
1733             }
1734         }

1735         
1736         ///
<summary>
1737         ///
Row event argument class
1738         ///</summary>

1739         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1740         
public class ResourcesRowChangeEvent : global::System.EventArgs {
1741             
1742             
private ResourcesRow eventRow;
1743             
1744             
private global::System.Data.DataRowAction eventAction;
1745             
1746             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1747             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1748             
public ResourcesRowChangeEvent(ResourcesRow row, global::System.Data.DataRowAction action) {
1749                 
this.eventRow = row;
1750                 
this.eventAction = action;
1751             }
1752             
1753             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1754             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1755             
public ResourcesRow Row {
1756                 
get {
1757                     
return this.eventRow;
1758                 }
1759             }
1760             
1761             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1762             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1763             
public global::System.Data.DataRowAction Action {
1764                 
get {
1765                     
return this.eventAction;
1766                 }
1767             }
1768         }

1769         
1770         ///
<summary>
1771         ///
Row event argument class
1772         ///</summary>

1773         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1774         
public class AppointmentsRowChangeEvent : global::System.EventArgs {
1775             
1776             
private AppointmentsRow eventRow;
1777             
1778             
private global::System.Data.DataRowAction eventAction;
1779             
1780             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1781             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1782             
public AppointmentsRowChangeEvent(AppointmentsRow row, global::System.Data.DataRowAction action) {
1783                 
this.eventRow = row;
1784                 
this.eventAction = action;
1785             }
1786             
1787             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1788             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1789             
public AppointmentsRow Row {
1790                 
get {
1791                     
return this.eventRow;
1792                 }
1793             }
1794             
1795             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1796             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1797             
public global::System.Data.DataRowAction Action {
1798                 
get {
1799                     
return this.eventAction;
1800                 }
1801             }
1802         }
1803     }
1804 }

1805 namespace
QuanLyNhanSu.SchedulerDatasetTableAdapters {
1806     
1807     
1808     ///
<summary>
1809     ///
Represents the connection and commands used to retrieve and save data.
1810     ///</summary>

1811     
[global::System.ComponentModel.DesignerCategoryAttribute("code")]
1812     
[global::System.ComponentModel.ToolboxItem(true)]
1813     
[global::System.ComponentModel.DataObjectAttribute(true)]
1814     [
global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
1815         
", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
1816     
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
1817     
public partial class TransientAppointmentsResourcesTableAdapter : global::System.ComponentModel.Component {
1818         
1819         
private global::System.Data.SqlClient.SqlDataAdapter _adapter;
1820         
1821         
private global::System.Data.SqlClient.SqlConnection _connection;
1822         
1823         
private global::System.Data.SqlClient.SqlTransaction _transaction;
1824         
1825         
private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
1826         
1827         
private bool _clearBeforeFill;
1828         
1829         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1830         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1831         
public TransientAppointmentsResourcesTableAdapter() {
1832             
this.ClearBeforeFill = true;
1833         }
1834         
1835         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1836         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1837         
protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
1838             
get {
1839                 
if ((this._adapter == null)) {
1840                     
this.InitAdapter();
1841                 }
1842                 
return this._adapter;
1843             }
1844         }
1845         
1846         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1847         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1848         
internal global::System.Data.SqlClient.SqlConnection Connection {
1849             
get {
1850                 
if ((this._connection == null)) {
1851                     
this.InitConnection();
1852                 }
1853                 
return this._connection;
1854             }
1855             
set {
1856                 
this._connection = value;
1857                 
if ((this.Adapter.InsertCommand != null)) {
1858                     
this.Adapter.InsertCommand.Connection = value;
1859                 }
1860                 
if ((this.Adapter.DeleteCommand != null)) {
1861                     
this.Adapter.DeleteCommand.Connection = value;
1862                 }
1863                 
if ((this.Adapter.UpdateCommand != null)) {
1864                     
this.Adapter.UpdateCommand.Connection = value;
1865                 }
1866                 
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
1867                     
if ((this.CommandCollection[i] != null)) {
1868                         ((
global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
1869                     }
1870                 }
1871             }
1872         }
1873         
1874         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1875         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1876         
internal global::System.Data.SqlClient.SqlTransaction Transaction {
1877             
get {
1878                 
return this._transaction;
1879             }
1880             
set {
1881                 
this._transaction = value;
1882                 
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
1883                     
this.CommandCollection[i].Transaction = this._transaction;
1884                 }
1885                 
if (((this.Adapter != null)
1886                             && (
this.Adapter.DeleteCommand != null))) {
1887                     
this.Adapter.DeleteCommand.Transaction = this._transaction;
1888                 }
1889                 
if (((this.Adapter != null)
1890                             && (
this.Adapter.InsertCommand != null))) {
1891                     
this.Adapter.InsertCommand.Transaction = this._transaction;
1892                 }
1893                 
if (((this.Adapter != null)
1894                             && (
this.Adapter.UpdateCommand != null))) {
1895                     
this.Adapter.UpdateCommand.Transaction = this._transaction;
1896                 }
1897             }
1898         }
1899         
1900         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1901         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1902         
protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
1903             
get {
1904                 
if ((this._commandCollection == null)) {
1905                     
this.InitCommandCollection();
1906                 }
1907                 
return this._commandCollection;
1908             }
1909         }
1910         
1911         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1912         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1913         
public bool ClearBeforeFill {
1914             
get {
1915                 
return this._clearBeforeFill;
1916             }
1917             
set {
1918                 
this._clearBeforeFill = value;
1919             }
1920         }
1921         
1922         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1923         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1924         
private void InitAdapter() {
1925             
this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
1926             
global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
1927             tableMapping.SourceTable =
"Table";
1928             tableMapping.DataSetTable =
"TransientAppointmentsResources";
1929             tableMapping.ColumnMappings.Add(
"AppointmentID", "AppointmentID");
1930             tableMapping.ColumnMappings.Add(
"ResourceID", "ResourceID");
1931             
this._adapter.TableMappings.Add(tableMapping);
1932             
this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
1933             
this._adapter.InsertCommand.Connection = this.Connection;
1934             
this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[TransientAppointmentsResources] ([AppointmentID], [ResourceID]" +
1935                 
") VALUES (@AppointmentID, @ResourceID)";
1936             
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
1937             
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@AppointmentID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "AppointmentID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
1938             
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ResourceID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ResourceID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
1939         }
1940         
1941         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1942         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1943         
private void InitConnection() {
1944             
this._connection = new global::System.Data.SqlClient.SqlConnection();
1945             
this._connection.ConnectionString = global::QuanLyNhanSu.Properties.Settings.Default.QuanLyNhanSuConnectionString;
1946         }
1947         
1948         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1949         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1950         
private void InitCommandCollection() {
1951             
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
1952             
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
1953             
this._commandCollection[0].Connection = this.Connection;
1954             
this._commandCollection[0].CommandText = "SELECT AppointmentID, ResourceID FROM dbo.TransientAppointmentsResources";
1955             
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
1956         }
1957         
1958         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1959         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1960         
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
1961         
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
1962         
public virtual int Fill(SchedulerDataset.TransientAppointmentsResourcesDataTable dataTable) {
1963             
this.Adapter.SelectCommand = this.CommandCollection[0];
1964             
if ((this.ClearBeforeFill == true)) {
1965                 dataTable.Clear();
1966             }
1967             
int returnValue = this.Adapter.Fill(dataTable);
1968             
return returnValue;
1969         }
1970         
1971         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1972         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1973         
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
1974         
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
1975         
public virtual SchedulerDataset.TransientAppointmentsResourcesDataTable GetData() {
1976             
this.Adapter.SelectCommand = this.CommandCollection[0];
1977             SchedulerDataset.TransientAppointmentsResourcesDataTable dataTable =
new SchedulerDataset.TransientAppointmentsResourcesDataTable();
1978             
this.Adapter.Fill(dataTable);
1979             
return dataTable;
1980         }
1981         
1982         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1983         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1984         
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
1985         
public virtual int Update(SchedulerDataset.TransientAppointmentsResourcesDataTable dataTable) {
1986             
return this.Adapter.Update(dataTable);
1987         }
1988         
1989         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1990         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1991         
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
1992         
public virtual int Update(SchedulerDataset dataSet) {
1993             
return this.Adapter.Update(dataSet, "TransientAppointmentsResources");
1994         }
1995         
1996         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1997         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
1998         
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
1999         
public virtual int Update(global::System.Data.DataRow dataRow) {
2000             
return this.Adapter.Update(new global::System.Data.DataRow[] {
2001                         dataRow});
2002         }
2003         
2004         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2005         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2006         
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
2007         
public virtual int Update(global::System.Data.DataRow[] dataRows) {
2008             
return this.Adapter.Update(dataRows);
2009         }
2010         
2011         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2012         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2013         
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
2014         
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
2015         
public virtual int Insert(global::System.Nullable<int> AppointmentID, global::System.Nullable<int> ResourceID) {
2016             
if ((AppointmentID.HasValue == true)) {
2017                 
this.Adapter.InsertCommand.Parameters[0].Value = ((int)(AppointmentID.Value));
2018             }
2019             
else {
2020                 
this.Adapter.InsertCommand.Parameters[0].Value = global::System.DBNull.Value;
2021             }
2022             
if ((ResourceID.HasValue == true)) {
2023                 
this.Adapter.InsertCommand.Parameters[1].Value = ((int)(ResourceID.Value));
2024             }
2025             
else {
2026                 
this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
2027             }
2028             
global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
2029             
if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
2030                         !=
global::System.Data.ConnectionState.Open)) {
2031                 
this.Adapter.InsertCommand.Connection.Open();
2032             }
2033             
try {
2034                 
int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
2035                 
return returnValue;
2036             }
2037             
finally {
2038                 
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
2039                     
this.Adapter.InsertCommand.Connection.Close();
2040                 }
2041             }
2042         }
2043     }

2044     
2045     ///
<summary>
2046     ///
Represents the connection and commands used to retrieve and save data.
2047     ///</summary>

2048     
[global::System.ComponentModel.DesignerCategoryAttribute("code")]
2049     
[global::System.ComponentModel.ToolboxItem(true)]
2050     
[global::System.ComponentModel.DataObjectAttribute(true)]
2051     [
global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
2052         
", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
2053     
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
2054     
public partial class ResourcesTableAdapter : global::System.ComponentModel.Component {
2055         
2056         
private global::System.Data.SqlClient.SqlDataAdapter _adapter;
2057         
2058         
private global::System.Data.SqlClient.SqlConnection _connection;
2059         
2060         
private global::System.Data.SqlClient.SqlTransaction _transaction;
2061         
2062         
private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
2063         
2064         
private bool _clearBeforeFill;
2065         
2066         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2067         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2068         
public ResourcesTableAdapter() {
2069             
this.ClearBeforeFill = true;
2070         }
2071         
2072         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2073         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2074         
protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
2075             
get {
2076                 
if ((this._adapter == null)) {
2077                     
this.InitAdapter();
2078                 }
2079                 
return this._adapter;
2080             }
2081         }
2082         
2083         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2084         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2085         
internal global::System.Data.SqlClient.SqlConnection Connection {
2086             
get {
2087                 
if ((this._connection == null)) {
2088                     
this.InitConnection();
2089                 }
2090                 
return this._connection;
2091             }
2092             
set {
2093                 
this._connection = value;
2094                 
if ((this.Adapter.InsertCommand != null)) {
2095                     
this.Adapter.InsertCommand.Connection = value;
2096                 }
2097                 
if ((this.Adapter.DeleteCommand != null)) {
2098                     
this.Adapter.DeleteCommand.Connection = value;
2099                 }
2100                 
if ((this.Adapter.UpdateCommand != null)) {
2101                     
this.Adapter.UpdateCommand.Connection = value;
2102                 }
2103                 
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
2104                     
if ((this.CommandCollection[i] != null)) {
2105                         ((
global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
2106                     }
2107                 }
2108             }
2109         }
2110         
2111         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2112         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2113         
internal global::System.Data.SqlClient.SqlTransaction Transaction {
2114             
get {
2115                 
return this._transaction;
2116             }
2117             
set {
2118                 
this._transaction = value;
2119                 
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
2120                     
this.CommandCollection[i].Transaction = this._transaction;
2121                 }
2122                 
if (((this.Adapter != null)
2123                             && (
this.Adapter.DeleteCommand != null))) {
2124                     
this.Adapter.DeleteCommand.Transaction = this._transaction;
2125                 }
2126                 
if (((this.Adapter != null)
2127                             && (
this.Adapter.InsertCommand != null))) {
2128                     
this.Adapter.InsertCommand.Transaction = this._transaction;
2129                 }
2130                 
if (((this.Adapter != null)
2131                             && (
this.Adapter.UpdateCommand != null))) {
2132                     
this.Adapter.UpdateCommand.Transaction = this._transaction;
2133                 }
2134             }
2135         }
2136         
2137         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2138         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2139         
protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
2140             
get {
2141                 
if ((this._commandCollection == null)) {
2142                     
this.InitCommandCollection();
2143                 }
2144                 
return this._commandCollection;
2145             }
2146         }
2147         
2148         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2149         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2150         
public bool ClearBeforeFill {
2151             
get {
2152                 
return this._clearBeforeFill;
2153             }
2154             
set {
2155                 
this._clearBeforeFill = value;
2156             }
2157         }
2158         
2159         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2160         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2161         
private void InitAdapter() {
2162             
this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
2163             
global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
2164             tableMapping.SourceTable =
"Table";
2165             tableMapping.DataSetTable =
"Resources";
2166             tableMapping.ColumnMappings.Add(
"ID", "ID");
2167             tableMapping.ColumnMappings.Add(
"Name", "Name");
2168             tableMapping.ColumnMappings.Add(
"Image", "Image");
2169             
this._adapter.TableMappings.Add(tableMapping);
2170             
this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
2171             
this._adapter.DeleteCommand.Connection = this.Connection;
2172             
this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Resources] WHERE (([ID] = @Original_ID) AND ([Name] = @Origina" +
2173                 
"l_Name) AND ((@IsNull_Image = 1 AND [Image] IS NULL) OR ([Image] = @Original_Ima" +
2174                 
"ge)))";
2175             
this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
2176             
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
2177             
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
2178             
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Image", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Image", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
2179             
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Image", global::System.Data.SqlDbType.Binary, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Image", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
2180             
this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
2181             
this._adapter.InsertCommand.Connection = this.Connection;
2182             
this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Resources] ([ID], [Name], [Image]) VALUES (@ID, @Name, @Image)" +
2183                 
";\r\nSELECT ID, Name, Image FROM Resources WHERE (ID = @ID)";
2184             
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
2185             
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
2186             
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
2187             
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Image", global::System.Data.SqlDbType.Binary, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Image", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
2188             
this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
2189             
this._adapter.UpdateCommand.Connection = this.Connection;
2190             
this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Resources] SET [ID] = @ID, [Name] = @Name, [Image] = @Image WHERE (([ID] = @Original_ID) AND ([Name] = @Original_Name) AND ((@IsNull_Image = 1 AND [Image] IS NULL) OR ([Image] = @Original_Image)));
2191 SELECT ID, Name, Image FROM Resources WHERE (ID = @ID)"
;
2192             
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
2193             
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
2194             
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Name", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
2195             
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Image", global::System.Data.SqlDbType.Binary, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Image", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
2196             
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
2197             
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Name", global::System.Data.SqlDbType.NChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Name", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
2198             
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Image", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Image", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
2199             
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Image", global::System.Data.SqlDbType.Binary, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Image", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
2200         }
2201         
2202         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2203         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2204         
private void InitConnection() {
2205             
this._connection = new global::System.Data.SqlClient.SqlConnection();
2206             
this._connection.ConnectionString = global::QuanLyNhanSu.Properties.Settings.Default.QuanLyNhanSuConnectionString;
2207         }
2208         
2209         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2210         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2211         
private void InitCommandCollection() {
2212             
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
2213             
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
2214             
this._commandCollection[0].Connection = this.Connection;
2215             
this._commandCollection[0].CommandText = "SELECT ID, Name, Image FROM dbo.Resources";
2216             
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
2217         }
2218         
2219         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2220         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2221         
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
2222         
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
2223         
public virtual int Fill(SchedulerDataset.ResourcesDataTable dataTable) {
2224             
this.Adapter.SelectCommand = this.CommandCollection[0];
2225             
if ((this.ClearBeforeFill == true)) {
2226                 dataTable.Clear();
2227             }
2228             
int returnValue = this.Adapter.Fill(dataTable);
2229             
return returnValue;
2230         }
2231         
2232         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2233         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2234         
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
2235         
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
2236         
public virtual SchedulerDataset.ResourcesDataTable GetData() {
2237             
this.Adapter.SelectCommand = this.CommandCollection[0];
2238             SchedulerDataset.ResourcesDataTable dataTable =
new SchedulerDataset.ResourcesDataTable();
2239             
this.Adapter.Fill(dataTable);
2240             
return dataTable;
2241         }
2242         
2243         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2244         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2245         
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
2246         
public virtual int Update(SchedulerDataset.ResourcesDataTable dataTable) {
2247             
return this.Adapter.Update(dataTable);
2248         }
2249         
2250         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2251         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2252         
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
2253         
public virtual int Update(SchedulerDataset dataSet) {
2254             
return this.Adapter.Update(dataSet, "Resources");
2255         }
2256         
2257         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2258         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2259         
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
2260         
public virtual int Update(global::System.Data.DataRow dataRow) {
2261             
return this.Adapter.Update(new global::System.Data.DataRow[] {
2262                         dataRow});
2263         }
2264         
2265         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2266         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2267         
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
2268         
public virtual int Update(global::System.Data.DataRow[] dataRows) {
2269             
return this.Adapter.Update(dataRows);
2270         }
2271         
2272         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2273         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2274         
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
2275         
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
2276         
public virtual int Delete(int Original_ID, string Original_Name, byte[] Original_Image) {
2277             
this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
2278             
if ((Original_Name == null)) {
2279                 
throw new global::System.ArgumentNullException("Original_Name");
2280             }
2281             
else {
2282                 
this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Name));
2283             }
2284             
if ((Original_Image == null)) {
2285                 
this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(1));
2286                 
this.Adapter.DeleteCommand.Parameters[3].Value = global::System.DBNull.Value;
2287             }
2288             
else {
2289                 
this.Adapter.DeleteCommand.Parameters[2].Value = ((object)(0));
2290                 
this.Adapter.DeleteCommand.Parameters[3].Value = ((byte[])(Original_Image));
2291             }
2292             
global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
2293             
if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
2294                         !=
global::System.Data.ConnectionState.Open)) {
2295                 
this.Adapter.DeleteCommand.Connection.Open();
2296             }
2297             
try {
2298                 
int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
2299                 
return returnValue;
2300             }
2301             
finally {
2302                 
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
2303                     
this.Adapter.DeleteCommand.Connection.Close();
2304                 }
2305             }
2306         }
2307         
2308         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2309         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2310         
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
2311         
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
2312         
public virtual int Insert(int ID, string Name, byte[] Image) {
2313             
this.Adapter.InsertCommand.Parameters[0].Value = ((int)(ID));
2314             
if ((Name == null)) {
2315                 
throw new global::System.ArgumentNullException("Name");
2316             }
2317             
else {
2318                 
this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Name));
2319             }
2320             
if ((Image == null)) {
2321                 
this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
2322             }
2323             
else {
2324                 
this.Adapter.InsertCommand.Parameters[2].Value = ((byte[])(Image));
2325             }
2326             
global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
2327             
if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
2328                         !=
global::System.Data.ConnectionState.Open)) {
2329                 
this.Adapter.InsertCommand.Connection.Open();
2330             }
2331             
try {
2332                 
int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
2333                 
return returnValue;
2334             }
2335             
finally {
2336                 
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
2337                     
this.Adapter.InsertCommand.Connection.Close();
2338                 }
2339             }
2340         }
2341         
2342         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2343         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2344         
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
2345         
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
2346         
public virtual int Update(int ID, string Name, byte[] Image, int Original_ID, string Original_Name, byte[] Original_Image) {
2347             
this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(ID));
2348             
if ((Name == null)) {
2349                 
throw new global::System.ArgumentNullException("Name");
2350             }
2351             
else {
2352                 
this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Name));
2353             }
2354             
if ((Image == null)) {
2355                 
this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
2356             }
2357             
else {
2358                 
this.Adapter.UpdateCommand.Parameters[2].Value = ((byte[])(Image));
2359             }
2360             
this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_ID));
2361             
if ((Original_Name == null)) {
2362                 
throw new global::System.ArgumentNullException("Original_Name");
2363             }
2364             
else {
2365                 
this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Original_Name));
2366             }
2367             
if ((Original_Image == null)) {
2368                 
this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(1));
2369                 
this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
2370             }
2371             
else {
2372                 
this.Adapter.UpdateCommand.Parameters[5].Value = ((object)(0));
2373                 
this.Adapter.UpdateCommand.Parameters[6].Value = ((byte[])(Original_Image));
2374             }
2375             
global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
2376             
if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
2377                         !=
global::System.Data.ConnectionState.Open)) {
2378                 
this.Adapter.UpdateCommand.Connection.Open();
2379             }
2380             
try {
2381                 
int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
2382                 
return returnValue;
2383             }
2384             
finally {
2385                 
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
2386                     
this.Adapter.UpdateCommand.Connection.Close();
2387                 }
2388             }
2389         }
2390         
2391         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2392         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2393         
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
2394         
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
2395         
public virtual int Update(string Name, byte[] Image, int Original_ID, string Original_Name, byte[] Original_Image) {
2396             
return this.Update(Original_ID, Name, Image, Original_ID, Original_Name, Original_Image);
2397         }
2398     }

2399     
2400     ///
<summary>
2401     ///
Represents the connection and commands used to retrieve and save data.
2402     ///</summary>

2403     
[global::System.ComponentModel.DesignerCategoryAttribute("code")]
2404     
[global::System.ComponentModel.ToolboxItem(true)]
2405     
[global::System.ComponentModel.DataObjectAttribute(true)]
2406     [
global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
2407         
", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
2408     
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
2409     
public partial class AppointmentsTableAdapter : global::System.ComponentModel.Component {
2410         
2411         
private global::System.Data.SqlClient.SqlDataAdapter _adapter;
2412         
2413         
private global::System.Data.SqlClient.SqlConnection _connection;
2414         
2415         
private global::System.Data.SqlClient.SqlTransaction _transaction;
2416         
2417         
private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
2418         
2419         
private bool _clearBeforeFill;
2420         
2421         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2422         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2423         
public AppointmentsTableAdapter() {
2424             
this.ClearBeforeFill = true;
2425         }
2426         
2427         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2428         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2429         
protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
2430             
get {
2431                 
if ((this._adapter == null)) {
2432                     
this.InitAdapter();
2433                 }
2434                 
return this._adapter;
2435             }
2436         }
2437         
2438         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2439         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2440         
internal global::System.Data.SqlClient.SqlConnection Connection {
2441             
get {
2442                 
if ((this._connection == null)) {
2443                     
this.InitConnection();
2444                 }
2445                 
return this._connection;
2446             }
2447             
set {
2448                 
this._connection = value;
2449                 
if ((this.Adapter.InsertCommand != null)) {
2450                     
this.Adapter.InsertCommand.Connection = value;
2451                 }
2452                 
if ((this.Adapter.DeleteCommand != null)) {
2453                     
this.Adapter.DeleteCommand.Connection = value;
2454                 }
2455                 
if ((this.Adapter.UpdateCommand != null)) {
2456                     
this.Adapter.UpdateCommand.Connection = value;
2457                 }
2458                 
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
2459                     
if ((this.CommandCollection[i] != null)) {
2460                         ((
global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
2461                     }
2462                 }
2463             }
2464         }
2465         
2466         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2467         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2468         
internal global::System.Data.SqlClient.SqlTransaction Transaction {
2469             
get {
2470                 
return this._transaction;
2471             }
2472             
set {
2473                 
this._transaction = value;
2474                 
for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
2475                     
this.CommandCollection[i].Transaction = this._transaction;
2476                 }
2477                 
if (((this.Adapter != null)
2478                             && (
this.Adapter.DeleteCommand != null))) {
2479                     
this.Adapter.DeleteCommand.Transaction = this._transaction;
2480                 }
2481                 
if (((this.Adapter != null)
2482                             && (
this.Adapter.InsertCommand != null))) {
2483                     
this.Adapter.InsertCommand.Transaction = this._transaction;
2484                 }
2485                 
if (((this.Adapter != null)
2486                             && (
this.Adapter.UpdateCommand != null))) {
2487                     
this.Adapter.UpdateCommand.Transaction = this._transaction;
2488                 }
2489             }
2490         }
2491         
2492         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2493         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2494         
protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
2495             
get {
2496                 
if ((this._commandCollection == null)) {
2497                     
this.InitCommandCollection();
2498                 }
2499                 
return this._commandCollection;
2500             }
2501         }
2502         
2503         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2504         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2505         
public bool ClearBeforeFill {
2506             
get {
2507                 
return this._clearBeforeFill;
2508             }
2509             
set {
2510                 
this._clearBeforeFill = value;
2511             }
2512         }
2513         
2514         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2515         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2516         
private void InitAdapter() {
2517             
this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
2518             
global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
2519             tableMapping.SourceTable =
"Table";
2520             tableMapping.DataSetTable =
"Appointments";
2521             tableMapping.ColumnMappings.Add(
"ID", "ID");
2522             tableMapping.ColumnMappings.Add(
"Summary", "Summary");
2523             tableMapping.ColumnMappings.Add(
"Start", "Start");
2524             tableMapping.ColumnMappings.Add(
"End", "End");
2525             tableMapping.ColumnMappings.Add(
"RecurrenceRule", "RecurrenceRule");
2526             tableMapping.ColumnMappings.Add(
"MasterEventId", "MasterEventId");
2527             tableMapping.ColumnMappings.Add(
"Location", "Location");
2528             tableMapping.ColumnMappings.Add(
"Description", "Description");
2529             tableMapping.ColumnMappings.Add(
"BackgroundId", "BackgroundId");
2530             tableMapping.ColumnMappings.Add(
"StatusID", "StatusID");
2531             
this._adapter.TableMappings.Add(tableMapping);
2532             
this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
2533             
this._adapter.DeleteCommand.Connection = this.Connection;
2534             
this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Appointments] WHERE (([ID] = @Original_ID) AND ([Summary] = @Original_Summary) AND ([Start] = @Original_Start) AND ([End] = @Original_End) AND ((@IsNull_RecurrenceRule = 1 AND [RecurrenceRule] IS NULL) OR ([RecurrenceRule] = @Original_RecurrenceRule)) AND ((@IsNull_MasterEventId = 1 AND [MasterEventId] IS NULL) OR ([MasterEventId] = @Original_MasterEventId)) AND ((@IsNull_Location = 1 AND [Location] IS NULL) OR ([Location] = @Original_Location)) AND ([BackgroundId] = @Original_BackgroundId) AND ((@IsNull_StatusID = 1 AND [StatusID] IS NULL) OR ([StatusID] = @Original_StatusID)))";
2535             
this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
2536             
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
2537             
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Summary", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Summary", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
2538             
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Start", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Start", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
2539             
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_End", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "End", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
2540             
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_RecurrenceRule", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RecurrenceRule", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
2541             
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RecurrenceRule", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RecurrenceRule", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
2542             
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_MasterEventId", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MasterEventId", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
2543             
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MasterEventId", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MasterEventId", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
2544             
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Location", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Location", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
2545             
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Location", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Location", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
2546             
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_BackgroundId", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BackgroundId", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
2547             
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_StatusID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StatusID", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
2548             
this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_StatusID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StatusID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
2549             
this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
2550             
this._adapter.InsertCommand.Connection = this.Connection;
2551             
this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Appointments] ([Summary], [Start], [End], [RecurrenceRule], [MasterEventId], [Location], [Description], [BackgroundId], [StatusID]) VALUES (@Summary, @Start, @End, @RecurrenceRule, @MasterEventId, @Location, @Description, @BackgroundId, @StatusID);
2552 SELECT ID, Summary, Start, [End], RecurrenceRule, MasterEventId, Location, Description, BackgroundId, StatusID FROM Appointments WHERE (ID = SCOPE_IDENTITY())"
;
2553             
this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
2554             
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Summary", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Summary", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
2555             
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Start", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Start", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
2556             
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@End", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "End", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
2557             
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RecurrenceRule", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RecurrenceRule", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
2558             
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MasterEventId", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MasterEventId", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
2559             
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Location", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Location", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
2560             
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Description", global::System.Data.SqlDbType.NText, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Description", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
2561             
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BackgroundId", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BackgroundId", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
2562             
this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StatusID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StatusID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
2563             
this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
2564             
this._adapter.UpdateCommand.Connection = this.Connection;
2565             
this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Appointments] SET [Summary] = @Summary, [Start] = @Start, [End] = @End, [RecurrenceRule] = @RecurrenceRule, [MasterEventId] = @MasterEventId, [Location] = @Location, [Description] = @Description, [BackgroundId] = @BackgroundId, [StatusID] = @StatusID WHERE (([ID] = @Original_ID) AND ([Summary] = @Original_Summary) AND ([Start] = @Original_Start) AND ([End] = @Original_End) AND ((@IsNull_RecurrenceRule = 1 AND [RecurrenceRule] IS NULL) OR ([RecurrenceRule] = @Original_RecurrenceRule)) AND ((@IsNull_MasterEventId = 1 AND [MasterEventId] IS NULL) OR ([MasterEventId] = @Original_MasterEventId)) AND ((@IsNull_Location = 1 AND [Location] IS NULL) OR ([Location] = @Original_Location)) AND ([BackgroundId] = @Original_BackgroundId) AND ((@IsNull_StatusID = 1 AND [StatusID] IS NULL) OR ([StatusID] = @Original_StatusID)));
2566 SELECT ID, Summary, Start, [End], RecurrenceRule, MasterEventId, Location, Description, BackgroundId, StatusID FROM Appointments WHERE (ID = @ID)"
;
2567             
this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
2568             
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Summary", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Summary", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
2569             
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Start", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Start", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
2570             
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@End", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "End", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
2571             
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@RecurrenceRule", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RecurrenceRule", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
2572             
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@MasterEventId", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MasterEventId", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
2573             
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Location", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Location", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
2574             
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Description", global::System.Data.SqlDbType.NText, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Description", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
2575             
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@BackgroundId", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BackgroundId", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
2576             
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@StatusID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StatusID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
2577             
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_ID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
2578             
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Summary", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Summary", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
2579             
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Start", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Start", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
2580             
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_End", global::System.Data.SqlDbType.DateTime, 0, global::System.Data.ParameterDirection.Input, 0, 0, "End", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
2581             
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_RecurrenceRule", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RecurrenceRule", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
2582             
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_RecurrenceRule", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "RecurrenceRule", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
2583             
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_MasterEventId", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MasterEventId", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
2584             
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_MasterEventId", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "MasterEventId", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
2585             
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_Location", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Location", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
2586             
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Location", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Location", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
2587             
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_BackgroundId", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "BackgroundId", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
2588             
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@IsNull_StatusID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StatusID", global::System.Data.DataRowVersion.Original, true, null, "", "", ""));
2589             
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_StatusID", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "StatusID", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
2590             
this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@ID", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "ID", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
2591         }
2592         
2593         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2594         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2595         
private void InitConnection() {
2596             
this._connection = new global::System.Data.SqlClient.SqlConnection();
2597             
this._connection.ConnectionString = global::QuanLyNhanSu.Properties.Settings.Default.QuanLyNhanSuConnectionString;
2598         }
2599         
2600         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2601         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2602         
private void InitCommandCollection() {
2603             
this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
2604             
this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
2605             
this._commandCollection[0].Connection = this.Connection;
2606             
this._commandCollection[0].CommandText = "SELECT ID, Summary, Start, [End], RecurrenceRule, MasterEventId, Location, Descri" +
2607                 
"ption, BackgroundId, StatusID FROM dbo.Appointments";
2608             
this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
2609         }
2610         
2611         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2612         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2613         
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
2614         
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
2615         
public virtual int Fill(SchedulerDataset.AppointmentsDataTable dataTable) {
2616             
this.Adapter.SelectCommand = this.CommandCollection[0];
2617             
if ((this.ClearBeforeFill == true)) {
2618                 dataTable.Clear();
2619             }
2620             
int returnValue = this.Adapter.Fill(dataTable);
2621             
return returnValue;
2622         }
2623         
2624         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2625         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2626         
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
2627         
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
2628         
public virtual SchedulerDataset.AppointmentsDataTable GetData() {
2629             
this.Adapter.SelectCommand = this.CommandCollection[0];
2630             SchedulerDataset.AppointmentsDataTable dataTable =
new SchedulerDataset.AppointmentsDataTable();
2631             
this.Adapter.Fill(dataTable);
2632             
return dataTable;
2633         }
2634         
2635         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2636         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2637         
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
2638         
public virtual int Update(SchedulerDataset.AppointmentsDataTable dataTable) {
2639             
return this.Adapter.Update(dataTable);
2640         }
2641         
2642         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2643         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2644         
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
2645         
public virtual int Update(SchedulerDataset dataSet) {
2646             
return this.Adapter.Update(dataSet, "Appointments");
2647         }
2648         
2649         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2650         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2651         
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
2652         
public virtual int Update(global::System.Data.DataRow dataRow) {
2653             
return this.Adapter.Update(new global::System.Data.DataRow[] {
2654                         dataRow});
2655         }
2656         
2657         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2658         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2659         
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
2660         
public virtual int Update(global::System.Data.DataRow[] dataRows) {
2661             
return this.Adapter.Update(dataRows);
2662         }
2663         
2664         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2665         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2666         
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
2667         
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
2668         
public virtual int Delete(int Original_ID, string Original_Summary, System.DateTime Original_Start, System.DateTime Original_End, string Original_RecurrenceRule, global::System.Nullable<int> Original_MasterEventId, string Original_Location, int Original_BackgroundId, global::System.Nullable<int> Original_StatusID) {
2669             
this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_ID));
2670             
if ((Original_Summary == null)) {
2671                 
throw new global::System.ArgumentNullException("Original_Summary");
2672             }
2673             
else {
2674                 
this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Summary));
2675             }
2676             
this.Adapter.DeleteCommand.Parameters[2].Value = ((System.DateTime)(Original_Start));
2677             
this.Adapter.DeleteCommand.Parameters[3].Value = ((System.DateTime)(Original_End));
2678             
if ((Original_RecurrenceRule == null)) {
2679                 
this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(1));
2680                 
this.Adapter.DeleteCommand.Parameters[5].Value = global::System.DBNull.Value;
2681             }
2682             
else {
2683                 
this.Adapter.DeleteCommand.Parameters[4].Value = ((object)(0));
2684                 
this.Adapter.DeleteCommand.Parameters[5].Value = ((string)(Original_RecurrenceRule));
2685             }
2686             
if ((Original_MasterEventId.HasValue == true)) {
2687                 
this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(0));
2688                 
this.Adapter.DeleteCommand.Parameters[7].Value = ((int)(Original_MasterEventId.Value));
2689             }
2690             
else {
2691                 
this.Adapter.DeleteCommand.Parameters[6].Value = ((object)(1));
2692                 
this.Adapter.DeleteCommand.Parameters[7].Value = global::System.DBNull.Value;
2693             }
2694             
if ((Original_Location == null)) {
2695                 
this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(1));
2696                 
this.Adapter.DeleteCommand.Parameters[9].Value = global::System.DBNull.Value;
2697             }
2698             
else {
2699                 
this.Adapter.DeleteCommand.Parameters[8].Value = ((object)(0));
2700                 
this.Adapter.DeleteCommand.Parameters[9].Value = ((string)(Original_Location));
2701             }
2702             
this.Adapter.DeleteCommand.Parameters[10].Value = ((int)(Original_BackgroundId));
2703             
if ((Original_StatusID.HasValue == true)) {
2704                 
this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(0));
2705                 
this.Adapter.DeleteCommand.Parameters[12].Value = ((int)(Original_StatusID.Value));
2706             }
2707             
else {
2708                 
this.Adapter.DeleteCommand.Parameters[11].Value = ((object)(1));
2709                 
this.Adapter.DeleteCommand.Parameters[12].Value = global::System.DBNull.Value;
2710             }
2711             
global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
2712             
if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
2713                         !=
global::System.Data.ConnectionState.Open)) {
2714                 
this.Adapter.DeleteCommand.Connection.Open();
2715             }
2716             
try {
2717                 
int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
2718                 
return returnValue;
2719             }
2720             
finally {
2721                 
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
2722                     
this.Adapter.DeleteCommand.Connection.Close();
2723                 }
2724             }
2725         }
2726         
2727         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2728         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2729         
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
2730         
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
2731         
public virtual int Insert(string Summary, System.DateTime Start, System.DateTime End, string RecurrenceRule, global::System.Nullable<int> MasterEventId, string Location, string Description, int BackgroundId, global::System.Nullable<int> StatusID) {
2732             
if ((Summary == null)) {
2733                 
throw new global::System.ArgumentNullException("Summary");
2734             }
2735             
else {
2736                 
this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Summary));
2737             }
2738             
this.Adapter.InsertCommand.Parameters[1].Value = ((System.DateTime)(Start));
2739             
this.Adapter.InsertCommand.Parameters[2].Value = ((System.DateTime)(End));
2740             
if ((RecurrenceRule == null)) {
2741                 
this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
2742             }
2743             
else {
2744                 
this.Adapter.InsertCommand.Parameters[3].Value = ((string)(RecurrenceRule));
2745             }
2746             
if ((MasterEventId.HasValue == true)) {
2747                 
this.Adapter.InsertCommand.Parameters[4].Value = ((int)(MasterEventId.Value));
2748             }
2749             
else {
2750                 
this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
2751             }
2752             
if ((Location == null)) {
2753                 
this.Adapter.InsertCommand.Parameters[5].Value = global::System.DBNull.Value;
2754             }
2755             
else {
2756                 
this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Location));
2757             }
2758             
if ((Description == null)) {
2759                 
this.Adapter.InsertCommand.Parameters[6].Value = global::System.DBNull.Value;
2760             }
2761             
else {
2762                 
this.Adapter.InsertCommand.Parameters[6].Value = ((string)(Description));
2763             }
2764             
this.Adapter.InsertCommand.Parameters[7].Value = ((int)(BackgroundId));
2765             
if ((StatusID.HasValue == true)) {
2766                 
this.Adapter.InsertCommand.Parameters[8].Value = ((int)(StatusID.Value));
2767             }
2768             
else {
2769                 
this.Adapter.InsertCommand.Parameters[8].Value = global::System.DBNull.Value;
2770             }
2771             
global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
2772             
if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
2773                         !=
global::System.Data.ConnectionState.Open)) {
2774                 
this.Adapter.InsertCommand.Connection.Open();
2775             }
2776             
try {
2777                 
int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
2778                 
return returnValue;
2779             }
2780             
finally {
2781                 
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
2782                     
this.Adapter.InsertCommand.Connection.Close();
2783                 }
2784             }
2785         }
2786         
2787         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2788         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2789         
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
2790         
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
2791         
public virtual int Update(
2792                     
string Summary,
2793                     System.DateTime Start,
2794                     System.DateTime End,
2795                     
string RecurrenceRule,
2796                     
global::System.Nullable<int> MasterEventId,
2797                     
string Location,
2798                     
string Description,
2799                     
int BackgroundId,
2800                     
global::System.Nullable<int> StatusID,
2801                     
int Original_ID,
2802                     
string Original_Summary,
2803                     System.DateTime Original_Start,
2804                     System.DateTime Original_End,
2805                     
string Original_RecurrenceRule,
2806                     
global::System.Nullable<int> Original_MasterEventId,
2807                     
string Original_Location,
2808                     
int Original_BackgroundId,
2809                     
global::System.Nullable<int> Original_StatusID,
2810                     
int ID) {
2811             
if ((Summary == null)) {
2812                 
throw new global::System.ArgumentNullException("Summary");
2813             }
2814             
else {
2815                 
this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Summary));
2816             }
2817             
this.Adapter.UpdateCommand.Parameters[1].Value = ((System.DateTime)(Start));
2818             
this.Adapter.UpdateCommand.Parameters[2].Value = ((System.DateTime)(End));
2819             
if ((RecurrenceRule == null)) {
2820                 
this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
2821             }
2822             
else {
2823                 
this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(RecurrenceRule));
2824             }
2825             
if ((MasterEventId.HasValue == true)) {
2826                 
this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(MasterEventId.Value));
2827             }
2828             
else {
2829                 
this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
2830             }
2831             
if ((Location == null)) {
2832                 
this.Adapter.UpdateCommand.Parameters[5].Value = global::System.DBNull.Value;
2833             }
2834             
else {
2835                 
this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Location));
2836             }
2837             
if ((Description == null)) {
2838                 
this.Adapter.UpdateCommand.Parameters[6].Value = global::System.DBNull.Value;
2839             }
2840             
else {
2841                 
this.Adapter.UpdateCommand.Parameters[6].Value = ((string)(Description));
2842             }
2843             
this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(BackgroundId));
2844             
if ((StatusID.HasValue == true)) {
2845                 
this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(StatusID.Value));
2846             }
2847             
else {
2848                 
this.Adapter.UpdateCommand.Parameters[8].Value = global::System.DBNull.Value;
2849             }
2850             
this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Original_ID));
2851             
if ((Original_Summary == null)) {
2852                 
throw new global::System.ArgumentNullException("Original_Summary");
2853             }
2854             
else {
2855                 
this.Adapter.UpdateCommand.Parameters[10].Value = ((string)(Original_Summary));
2856             }
2857             
this.Adapter.UpdateCommand.Parameters[11].Value = ((System.DateTime)(Original_Start));
2858             
this.Adapter.UpdateCommand.Parameters[12].Value = ((System.DateTime)(Original_End));
2859             
if ((Original_RecurrenceRule == null)) {
2860                 
this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(1));
2861                 
this.Adapter.UpdateCommand.Parameters[14].Value = global::System.DBNull.Value;
2862             }
2863             
else {
2864                 
this.Adapter.UpdateCommand.Parameters[13].Value = ((object)(0));
2865                 
this.Adapter.UpdateCommand.Parameters[14].Value = ((string)(Original_RecurrenceRule));
2866             }
2867             
if ((Original_MasterEventId.HasValue == true)) {
2868                 
this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(0));
2869                 
this.Adapter.UpdateCommand.Parameters[16].Value = ((int)(Original_MasterEventId.Value));
2870             }
2871             
else {
2872                 
this.Adapter.UpdateCommand.Parameters[15].Value = ((object)(1));
2873                 
this.Adapter.UpdateCommand.Parameters[16].Value = global::System.DBNull.Value;
2874             }
2875             
if ((Original_Location == null)) {
2876                 
this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(1));
2877                 
this.Adapter.UpdateCommand.Parameters[18].Value = global::System.DBNull.Value;
2878             }
2879             
else {
2880                 
this.Adapter.UpdateCommand.Parameters[17].Value = ((object)(0));
2881                 
this.Adapter.UpdateCommand.Parameters[18].Value = ((string)(Original_Location));
2882             }
2883             
this.Adapter.UpdateCommand.Parameters[19].Value = ((int)(Original_BackgroundId));
2884             
if ((Original_StatusID.HasValue == true)) {
2885                 
this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(0));
2886                 
this.Adapter.UpdateCommand.Parameters[21].Value = ((int)(Original_StatusID.Value));
2887             }
2888             
else {
2889                 
this.Adapter.UpdateCommand.Parameters[20].Value = ((object)(1));
2890                 
this.Adapter.UpdateCommand.Parameters[21].Value = global::System.DBNull.Value;
2891             }
2892             
this.Adapter.UpdateCommand.Parameters[22].Value = ((int)(ID));
2893             
global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
2894             
if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
2895                         !=
global::System.Data.ConnectionState.Open)) {
2896                 
this.Adapter.UpdateCommand.Connection.Open();
2897             }
2898             
try {
2899                 
int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
2900                 
return returnValue;
2901             }
2902             
finally {
2903                 
if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
2904                     
this.Adapter.UpdateCommand.Connection.Close();
2905                 }
2906             }
2907         }
2908         
2909         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2910         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2911         
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
2912         
[global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
2913         
public virtual int Update(
2914                     
string Summary,
2915                     System.DateTime Start,
2916                     System.DateTime End,
2917                     
string RecurrenceRule,
2918                     
global::System.Nullable<int> MasterEventId,
2919                     
string Location,
2920                     
string Description,
2921                     
int BackgroundId,
2922                     
global::System.Nullable<int> StatusID,
2923                     
int Original_ID,
2924                     
string Original_Summary,
2925                     System.DateTime Original_Start,
2926                     System.DateTime Original_End,
2927                     
string Original_RecurrenceRule,
2928                     
global::System.Nullable<int> Original_MasterEventId,
2929                     
string Original_Location,
2930                     
int Original_BackgroundId,
2931                     
global::System.Nullable<int> Original_StatusID) {
2932             
return this.Update(Summary, Start, End, RecurrenceRule, MasterEventId, Location, Description, BackgroundId, StatusID, Original_ID, Original_Summary, Original_Start, Original_End, Original_RecurrenceRule, Original_MasterEventId, Original_Location, Original_BackgroundId, Original_StatusID, Original_ID);
2933         }
2934     }

2935     
2936     ///
<summary>
2937     ///
TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
2938     ///</summary>

2939     
[global::System.ComponentModel.DesignerCategoryAttribute("code")]
2940     
[global::System.ComponentModel.ToolboxItem(true)]
2941     [
global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
2942         
"esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
2943     
[global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
2944     
public partial class TableAdapterManager : global::System.ComponentModel.Component {
2945         
2946         
private UpdateOrderOption _updateOrder;
2947         
2948         
private TransientAppointmentsResourcesTableAdapter _transientAppointmentsResourcesTableAdapter;
2949         
2950         
private ResourcesTableAdapter _resourcesTableAdapter;
2951         
2952         
private AppointmentsTableAdapter _appointmentsTableAdapter;
2953         
2954         
private bool _backupDataSetBeforeUpdate;
2955         
2956         
private global::System.Data.IDbConnection _connection;
2957         
2958         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2959         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2960         
public UpdateOrderOption UpdateOrder {
2961             
get {
2962                 
return this._updateOrder;
2963             }
2964             
set {
2965                 
this._updateOrder = value;
2966             }
2967         }
2968         
2969         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2970         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2971         [
global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
2972             
"ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
2973             
"a", "System.Drawing.Design.UITypeEditor")]
2974         
public TransientAppointmentsResourcesTableAdapter TransientAppointmentsResourcesTableAdapter {
2975             
get {
2976                 
return this._transientAppointmentsResourcesTableAdapter;
2977             }
2978             
set {
2979                 
this._transientAppointmentsResourcesTableAdapter = value;
2980             }
2981         }
2982         
2983         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2984         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2985         [
global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
2986             
"ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
2987             
"a", "System.Drawing.Design.UITypeEditor")]
2988         
public ResourcesTableAdapter ResourcesTableAdapter {
2989             
get {
2990                 
return this._resourcesTableAdapter;
2991             }
2992             
set {
2993                 
this._resourcesTableAdapter = value;
2994             }
2995         }
2996         
2997         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2998         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2999         [
global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
3000             
"ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
3001             
"a", "System.Drawing.Design.UITypeEditor")]
3002         
public AppointmentsTableAdapter AppointmentsTableAdapter {
3003             
get {
3004                 
return this._appointmentsTableAdapter;
3005             }
3006             
set {
3007                 
this._appointmentsTableAdapter = value;
3008             }
3009         }
3010         
3011         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3012         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3013         
public bool BackupDataSetBeforeUpdate {
3014             
get {
3015                 
return this._backupDataSetBeforeUpdate;
3016             }
3017             
set {
3018                 
this._backupDataSetBeforeUpdate = value;
3019             }
3020         }
3021         
3022         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3023         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3024         
[global::System.ComponentModel.Browsable(false)]
3025         
public global::System.Data.IDbConnection Connection {
3026             
get {
3027                 
if ((this._connection != null)) {
3028                     
return this._connection;
3029                 }
3030                 
if (((this._transientAppointmentsResourcesTableAdapter != null)
3031                             && (
this._transientAppointmentsResourcesTableAdapter.Connection != null))) {
3032                     
return this._transientAppointmentsResourcesTableAdapter.Connection;
3033                 }
3034                 
if (((this._resourcesTableAdapter != null)
3035                             && (
this._resourcesTableAdapter.Connection != null))) {
3036                     
return this._resourcesTableAdapter.Connection;
3037                 }
3038                 
if (((this._appointmentsTableAdapter != null)
3039                             && (
this._appointmentsTableAdapter.Connection != null))) {
3040                     
return this._appointmentsTableAdapter.Connection;
3041                 }
3042                 
return null;
3043             }
3044             
set {
3045                 
this._connection = value;
3046             }
3047         }
3048         
3049         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3050         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3051         
[global::System.ComponentModel.Browsable(false)]
3052         
public int TableAdapterInstanceCount {
3053             
get {
3054                 
int count = 0;
3055                 
if ((this._transientAppointmentsResourcesTableAdapter != null)) {
3056                     count = (count +
1);
3057                 }
3058                 
if ((this._resourcesTableAdapter != null)) {
3059                     count = (count +
1);
3060                 }
3061                 
if ((this._appointmentsTableAdapter != null)) {
3062                     count = (count +
1);
3063                 }
3064                 
return count;
3065             }
3066         }

3067         
3068         ///
<summary>
3069         ///
Update rows in top-down order.
3070         ///</summary>

3071         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3072         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3073         
private int UpdateUpdatedRows(SchedulerDataset dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
3074             
int result = 0;
3075             
if ((this._appointmentsTableAdapter != null)) {
3076                 
global::System.Data.DataRow[] updatedRows = dataSet.Appointments.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
3077                 updatedRows =
this.GetRealUpdatedRows(updatedRows, allAddedRows);
3078                 
if (((updatedRows != null)
3079                             && (
0 < updatedRows.Length))) {
3080                     result = (result +
this._appointmentsTableAdapter.Update(updatedRows));
3081                     allChangedRows.AddRange(updatedRows);
3082                 }
3083             }
3084             
if ((this._resourcesTableAdapter != null)) {
3085                 
global::System.Data.DataRow[] updatedRows = dataSet.Resources.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
3086                 updatedRows =
this.GetRealUpdatedRows(updatedRows, allAddedRows);
3087                 
if (((updatedRows != null)
3088                             && (
0 < updatedRows.Length))) {
3089                     result = (result +
this._resourcesTableAdapter.Update(updatedRows));
3090                     allChangedRows.AddRange(updatedRows);
3091                 }
3092             }
3093             
if ((this._transientAppointmentsResourcesTableAdapter != null)) {
3094                 
global::System.Data.DataRow[] updatedRows = dataSet.TransientAppointmentsResources.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
3095                 updatedRows =
this.GetRealUpdatedRows(updatedRows, allAddedRows);
3096                 
if (((updatedRows != null)
3097                             && (
0 < updatedRows.Length))) {
3098                     result = (result +
this._transientAppointmentsResourcesTableAdapter.Update(updatedRows));
3099                     allChangedRows.AddRange(updatedRows);
3100                 }
3101             }
3102             
return result;
3103         }

3104         
3105         ///
<summary>
3106         ///
Insert rows in top-down order.
3107         ///</summary>

3108         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3109         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3110         
private int UpdateInsertedRows(SchedulerDataset dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
3111             
int result = 0;
3112             
if ((this._appointmentsTableAdapter != null)) {
3113                 
global::System.Data.DataRow[] addedRows = dataSet.Appointments.Select(null, null, global::System.Data.DataViewRowState.Added);
3114                 
if (((addedRows != null)
3115                             && (
0 < addedRows.Length))) {
3116                     result = (result +
this._appointmentsTableAdapter.Update(addedRows));
3117                     allAddedRows.AddRange(addedRows);
3118                 }
3119             }
3120             
if ((this._resourcesTableAdapter != null)) {
3121                 
global::System.Data.DataRow[] addedRows = dataSet.Resources.Select(null, null, global::System.Data.DataViewRowState.Added);
3122                 
if (((addedRows != null)
3123                             && (
0 < addedRows.Length))) {
3124                     result = (result +
this._resourcesTableAdapter.Update(addedRows));
3125                     allAddedRows.AddRange(addedRows);
3126                 }
3127             }
3128             
if ((this._transientAppointmentsResourcesTableAdapter != null)) {
3129                 
global::System.Data.DataRow[] addedRows = dataSet.TransientAppointmentsResources.Select(null, null, global::System.Data.DataViewRowState.Added);
3130                 
if (((addedRows != null)
3131                             && (
0 < addedRows.Length))) {
3132                     result = (result +
this._transientAppointmentsResourcesTableAdapter.Update(addedRows));
3133                     allAddedRows.AddRange(addedRows);
3134                 }
3135             }
3136             
return result;
3137         }

3138         
3139         ///
<summary>
3140         ///
Delete rows in bottom-up order.
3141         ///</summary>

3142         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3143         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3144         
private int UpdateDeletedRows(SchedulerDataset dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
3145             
int result = 0;
3146             
if ((this._transientAppointmentsResourcesTableAdapter != null)) {
3147                 
global::System.Data.DataRow[] deletedRows = dataSet.TransientAppointmentsResources.Select(null, null, global::System.Data.DataViewRowState.Deleted);
3148                 
if (((deletedRows != null)
3149                             && (
0 < deletedRows.Length))) {
3150                     result = (result +
this._transientAppointmentsResourcesTableAdapter.Update(deletedRows));
3151                     allChangedRows.AddRange(deletedRows);
3152                 }
3153             }
3154             
if ((this._resourcesTableAdapter != null)) {
3155                 
global::System.Data.DataRow[] deletedRows = dataSet.Resources.Select(null, null, global::System.Data.DataViewRowState.Deleted);
3156                 
if (((deletedRows != null)
3157                             && (
0 < deletedRows.Length))) {
3158                     result = (result +
this._resourcesTableAdapter.Update(deletedRows));
3159                     allChangedRows.AddRange(deletedRows);
3160                 }
3161             }
3162             
if ((this._appointmentsTableAdapter != null)) {
3163                 
global::System.Data.DataRow[] deletedRows = dataSet.Appointments.Select(null, null, global::System.Data.DataViewRowState.Deleted);
3164                 
if (((deletedRows != null)
3165                             && (
0 < deletedRows.Length))) {
3166                     result = (result +
this._appointmentsTableAdapter.Update(deletedRows));
3167                     allChangedRows.AddRange(deletedRows);
3168                 }
3169             }
3170             
return result;
3171         }

3172         
3173         ///
<summary>
3174         ///
Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
3175         ///</summary>

3176         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3177         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3178         
private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
3179             
if (((updatedRows == null)
3180                         || (updatedRows.Length <
1))) {
3181                 
return updatedRows;
3182             }
3183             
if (((allAddedRows == null)
3184                         || (allAddedRows.Count <
1))) {
3185                 
return updatedRows;
3186             }
3187             
global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
3188             
for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
3189                 
global::System.Data.DataRow row = updatedRows[i];
3190                 
if ((allAddedRows.Contains(row) == false)) {
3191                     realUpdatedRows.Add(row);
3192                 }
3193             }
3194             
return realUpdatedRows.ToArray();
3195         }

3196         
3197         ///
<summary>
3198         ///
Update all changes to the dataset.
3199         ///</summary>

3200         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3201         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3202         
public virtual int UpdateAll(SchedulerDataset dataSet) {
3203             
if ((dataSet == null)) {
3204                 
throw new global::System.ArgumentNullException("dataSet");
3205             }
3206             
if ((dataSet.HasChanges() == false)) {
3207                 
return 0;
3208             }
3209             
if (((this._transientAppointmentsResourcesTableAdapter != null)
3210                         && (
this.MatchTableAdapterConnection(this._transientAppointmentsResourcesTableAdapter.Connection) == false))) {
3211                 
throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
3212                         
"tring.");
3213             }
3214             
if (((this._resourcesTableAdapter != null)
3215                         && (
this.MatchTableAdapterConnection(this._resourcesTableAdapter.Connection) == false))) {
3216                 
throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
3217                         
"tring.");
3218             }
3219             
if (((this._appointmentsTableAdapter != null)
3220                         && (
this.MatchTableAdapterConnection(this._appointmentsTableAdapter.Connection) == false))) {
3221                 
throw new global::System.ArgumentException("All TableAdapters managed by a TableAdapterManager must use the same connection s" +
3222                         
"tring.");
3223             }
3224             
global::System.Data.IDbConnection workConnection = this.Connection;
3225             
if ((workConnection == null)) {
3226                 
throw new global::System.ApplicationException("TableAdapterManager contains no connection information. Set each TableAdapterMana" +
3227                         
"ger TableAdapter property to a valid TableAdapter instance.");
3228             }
3229             
bool workConnOpened = false;
3230             
if (((workConnection.State & global::System.Data.ConnectionState.Broken)
3231                         ==
global::System.Data.ConnectionState.Broken)) {
3232                 workConnection.Close();
3233             }
3234             
if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
3235                 workConnection.Open();
3236                 workConnOpened =
true;
3237             }
3238             
global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
3239             
if ((workTransaction == null)) {
3240                 
throw new global::System.ApplicationException("The transaction cannot begin. The current data connection does not support transa" +
3241                         
"ctions or the current state is not allowing the transaction to begin.");
3242             }
3243             
global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
3244             
global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
3245             
global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
3246             
global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
3247             
int result = 0;
3248             
global::System.Data.DataSet backupDataSet = null;
3249             
if (this.BackupDataSetBeforeUpdate) {
3250                 backupDataSet =
new global::System.Data.DataSet();
3251                 backupDataSet.Merge(dataSet);
3252             }
3253             
try {
3254                 
// ---- Prepare for update -----------
3255                 
//
3256                 
if ((this._transientAppointmentsResourcesTableAdapter != null)) {
3257                     revertConnections.Add(
this._transientAppointmentsResourcesTableAdapter, this._transientAppointmentsResourcesTableAdapter.Connection);
3258                     
this._transientAppointmentsResourcesTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
3259                     
this._transientAppointmentsResourcesTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
3260                     
if (this._transientAppointmentsResourcesTableAdapter.Adapter.AcceptChangesDuringUpdate) {
3261                         
this._transientAppointmentsResourcesTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
3262                         adaptersWithAcceptChangesDuringUpdate.Add(
this._transientAppointmentsResourcesTableAdapter.Adapter);
3263                     }
3264                 }
3265                 
if ((this._resourcesTableAdapter != null)) {
3266                     revertConnections.Add(
this._resourcesTableAdapter, this._resourcesTableAdapter.Connection);
3267                     
this._resourcesTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
3268                     
this._resourcesTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
3269                     
if (this._resourcesTableAdapter.Adapter.AcceptChangesDuringUpdate) {
3270                         
this._resourcesTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
3271                         adaptersWithAcceptChangesDuringUpdate.Add(
this._resourcesTableAdapter.Adapter);
3272                     }
3273                 }
3274                 
if ((this._appointmentsTableAdapter != null)) {
3275                     revertConnections.Add(
this._appointmentsTableAdapter, this._appointmentsTableAdapter.Connection);
3276                     
this._appointmentsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
3277                     
this._appointmentsTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
3278                     
if (this._appointmentsTableAdapter.Adapter.AcceptChangesDuringUpdate) {
3279                         
this._appointmentsTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
3280                         adaptersWithAcceptChangesDuringUpdate.Add(
this._appointmentsTableAdapter.Adapter);
3281                     }
3282                 }
3283                 
//
3284                 
//---- Perform updates -----------
3285                 
//
3286                 
if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
3287                     result = (result +
this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
3288                     result = (result +
this.UpdateInsertedRows(dataSet, allAddedRows));
3289                 }
3290                 
else {
3291                     result = (result +
this.UpdateInsertedRows(dataSet, allAddedRows));
3292                     result = (result +
this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
3293                 }
3294                 result = (result +
this.UpdateDeletedRows(dataSet, allChangedRows));
3295                 
//
3296                 
//---- Commit updates -----------
3297                 
//
3298                 workTransaction.Commit();
3299                 
if ((0 < allAddedRows.Count)) {
3300                     
global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
3301                     allAddedRows.CopyTo(rows);
3302                     
for (int i = 0; (i < rows.Length); i = (i + 1)) {
3303                         
global::System.Data.DataRow row = rows[i];
3304                         row.AcceptChanges();
3305                     }
3306                 }
3307                 
if ((0 < allChangedRows.Count)) {
3308                     
global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
3309                     allChangedRows.CopyTo(rows);
3310                     
for (int i = 0; (i < rows.Length); i = (i + 1)) {
3311                         
global::System.Data.DataRow row = rows[i];
3312                         row.AcceptChanges();
3313                     }
3314                 }
3315             }
3316             
catch (global::System.Exception ex) {
3317                 workTransaction.Rollback();
3318                 
// ---- Restore the dataset -----------
3319                 
if (this.BackupDataSetBeforeUpdate) {
3320                     
global::System.Diagnostics.Debug.Assert((backupDataSet != null));
3321                     dataSet.Clear();
3322                     dataSet.Merge(backupDataSet);
3323                 }
3324                 
else {
3325                     
if ((0 < allAddedRows.Count)) {
3326                         
global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
3327                         allAddedRows.CopyTo(rows);
3328                         
for (int i = 0; (i < rows.Length); i = (i + 1)) {
3329                             
global::System.Data.DataRow row = rows[i];
3330                             row.AcceptChanges();
3331                             row.SetAdded();
3332                         }
3333                     }
3334                 }
3335                 
throw ex;
3336             }
3337             
finally {
3338                 
if (workConnOpened) {
3339                     workConnection.Close();
3340                 }
3341                 
if ((this._transientAppointmentsResourcesTableAdapter != null)) {
3342                     
this._transientAppointmentsResourcesTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._transientAppointmentsResourcesTableAdapter]));
3343                     
this._transientAppointmentsResourcesTableAdapter.Transaction = null;
3344                 }
3345                 
if ((this._resourcesTableAdapter != null)) {
3346                     
this._resourcesTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._resourcesTableAdapter]));
3347                     
this._resourcesTableAdapter.Transaction = null;
3348                 }
3349                 
if ((this._appointmentsTableAdapter != null)) {
3350                     
this._appointmentsTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._appointmentsTableAdapter]));
3351                     
this._appointmentsTableAdapter.Transaction = null;
3352                 }
3353                 
if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
3354                     
global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
3355                     adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
3356                     
for (int i = 0; (i < adapters.Length); i = (i + 1)) {
3357                         
global::System.Data.Common.DataAdapter adapter = adapters[i];
3358                         adapter.AcceptChangesDuringUpdate =
true;
3359                     }
3360                 }
3361             }
3362             
return result;
3363         }
3364         
3365         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3366         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3367         
protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
3368             
global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
3369         }
3370         
3371         
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3372         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3373         
protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
3374             
if ((this._connection != null)) {
3375                 
return true;
3376             }
3377             
if (((this.Connection == null)
3378                         || (inputConnection ==
null))) {
3379                 
return true;
3380             }
3381             
if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
3382                 
return true;
3383             }
3384             
return false;
3385         }

3386         
3387         ///
<summary>
3388         ///
Update Order Option
3389         ///</summary>

3390         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3391         
public enum UpdateOrderOption {
3392             
3393             InsertUpdateDelete =
0,
3394             
3395             UpdateInsertDelete =
1,
3396         }

3397         
3398         ///
<summary>
3399         ///
Used to sort self-referenced table's rows
3400         ///</summary>

3401         
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3402         
private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
3403             
3404             
private global::System.Data.DataRelation _relation;
3405             
3406             
private int _childFirst;
3407             
3408             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3409             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3410             
internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
3411                 
this._relation = relation;
3412                 
if (childFirst) {
3413                     
this._childFirst = -1;
3414                 }
3415                 
else {
3416                     
this._childFirst = 1;
3417                 }
3418             }
3419             
3420             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3421             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3422             
private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
3423                 
global::System.Diagnostics.Debug.Assert((row != null));
3424                 
global::System.Data.DataRow root = row;
3425                 distance =
0;
3426
3427                 
global::System.Collections.Generic.IDictionary<global::System.Data.DataRow, global::System.Data.DataRow> traversedRows = new global::System.Collections.Generic.Dictionary<global::System.Data.DataRow, global::System.Data.DataRow>();
3428                 traversedRows[row] = row;
3429
3430                 
global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
3431                 
for (
3432                 ; ((parent !=
null)
3433                             && (traversedRows.ContainsKey(parent) ==
false));
3434                 ) {
3435                     distance = (distance +
1);
3436                     root = parent;
3437                     traversedRows[parent] = parent;
3438                     parent = parent.GetParentRow(
this._relation, global::System.Data.DataRowVersion.Default);
3439                 }
3440
3441                 
if ((distance == 0)) {
3442                     traversedRows.Clear();
3443                     traversedRows[row] = row;
3444                     parent = row.GetParentRow(
this._relation, global::System.Data.DataRowVersion.Original);
3445                     
for (
3446                     ; ((parent !=
null)
3447                                 && (traversedRows.ContainsKey(parent) ==
false));
3448                     ) {
3449                         distance = (distance +
1);
3450                         root = parent;
3451                         traversedRows[parent] = parent;
3452                         parent = parent.GetParentRow(
this._relation, global::System.Data.DataRowVersion.Original);
3453                     }
3454                 }
3455
3456                 
return root;
3457             }
3458             
3459             
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3460             
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
3461             
public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
3462                 
if (object.ReferenceEquals(row1, row2)) {
3463                     
return 0;
3464                 }
3465                 
if ((row1 == null)) {
3466                     
return -1;
3467                 }
3468                 
if ((row2 == null)) {
3469                     
return 1;
3470                 }
3471
3472                 
int distance1 = 0;
3473                 
global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
3474
3475                 
int distance2 = 0;
3476                 
global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
3477
3478                 
if (object.ReferenceEquals(root1, root2)) {
3479                     
return (this._childFirst * distance1.CompareTo(distance2));
3480                 }
3481                 
else {
3482                     
global::System.Diagnostics.Debug.Assert(((root1.Table != null)
3483                                     && (root2.Table !=
null)));
3484                     
if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
3485                         
return -1;
3486                     }
3487                     
else {
3488                         
return 1;
3489                     }
3490                 }
3491             }
3492         }
3493     }
3494 }
3495
3496 #pragma warning restore
1591



Quản lý nhân sự công ty bằng c# _ full source code 60.429 lượt xem

Gõ tìm kiếm nhanh...